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:
Joffrey JAFFEUX
2018-08-29 10:07:49 +02:00
committed by GitHub
parent 720726ea68
commit ad34bdca09
3 changed files with 25 additions and 11 deletions
@@ -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"
})
];