UX: better accommodate PM composer with tags (#14778)

This commit is contained in:
Kris 2021-10-29 16:26:37 -04:00 committed by GitHub
parent 978a005a42
commit cd8822cb50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 12 deletions

View File

@ -62,12 +62,12 @@
recipients=model.targetRecipients
hasGroups=model.hasTargetGroups
focusTarget=focusTarget
class="users-input"
class=(concat "users-input" (if showWarning " can-warn"))
}}
{{#if showWarning}}
<label class="add-warning">
{{input type="checkbox" checked=model.isWarning}}
{{i18n "composer.add_warning"}}
<span>{{i18n "composer.add_warning"}}</span>
</label>
{{/if}}
</div>

View File

@ -11,19 +11,48 @@
}
}
#private-message-users {
width: 404px;
}
.item + #private-message-users {
width: unset;
min-width: 150px;
flex: 1 1 auto;
}
.select-kit.is-expanded {
z-index: z("composer", "dropdown") + 1;
}
&.private-message {
.with-tags {
.title-and-category {
flex-wrap: nowrap; // force title and tags on same line for PMs
.mini-tag-chooser {
margin-bottom: 5px; // match title input margin
flex: 0 0 auto;
margin-left: 1%; // matches margin between category and tag input
width: 39%;
}
}
}
#private-message-users,
.users-input {
width: 100%;
flex: 0 0 auto;
&.can-warn {
// space for warning, inverse of mini-tag-chooser width
width: 60%;
}
}
.add-warning {
flex: 1 1 auto;
overflow: hidden;
span {
// protects the space of the user input in case there's a very long translation
@include ellipsis;
}
}
&.show-preview {
.user-selector {
width: 50%;
}
}
}
}
.edit-title {