mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:29:22 +08:00
UX: composer category dropdown height, truncation (#24420)
This commit is contained in:
parent
d561a9ebd9
commit
cdcf53573d
|
@ -270,22 +270,20 @@ html.composer-open {
|
|||
max-width: 450px;
|
||||
}
|
||||
|
||||
// below needed for text-overflow: ellipsis;
|
||||
.selected-name {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
.name {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
font-size: var(--font-up-1);
|
||||
max-width: 100%;
|
||||
gap: 0 0.5em;
|
||||
.badge-category__wrapper {
|
||||
.badge-category {
|
||||
overflow: hidden;
|
||||
}
|
||||
// This prevents the first category from being too-truncated at the expense of a long subcategory
|
||||
.badge-category__wrapper:first-of-type:not(:last-of-type) {
|
||||
flex: 1 0 auto;
|
||||
max-width: 50%;
|
||||
> span:last-of-type:not(:first-of-type) {
|
||||
flex-shrink: 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user