UI: minor tweaks to new message participants list (#6328)
* Icon for button * Display name when editing on mobile * Always display name on mobile when less/or 4 participants involved
This commit is contained in:
@@ -142,13 +142,24 @@ export default createWidget("private-message-map", {
|
||||
);
|
||||
}
|
||||
|
||||
const result = [h("div.participants", participants)];
|
||||
let hideNamesClass = "";
|
||||
if (
|
||||
!this.state.isEditing &&
|
||||
this.site.mobileView &&
|
||||
Ember.makeArray(participants[0]).length > 4
|
||||
) {
|
||||
hideNamesClass = ".hide-names";
|
||||
}
|
||||
|
||||
const result = [h(`div.participants${hideNamesClass}`, participants)];
|
||||
|
||||
const controls = [
|
||||
this.attach("button", {
|
||||
action: "toggleEditing",
|
||||
label: "private_message_info.edit",
|
||||
className: "btn"
|
||||
icon: "user",
|
||||
iconRight: true,
|
||||
className: "btn add-remove-participant-btn"
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user