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;
|
max-width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// below needed for text-overflow: ellipsis;
|
|
||||||
.selected-name {
|
.selected-name {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.name {
|
.name {
|
||||||
max-width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
font-size: var(--font-up-1);
|
||||||
|
max-width: 100%;
|
||||||
gap: 0 0.5em;
|
gap: 0 0.5em;
|
||||||
.badge-category__wrapper {
|
.badge-category {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
// This prevents the first category from being too-truncated at the expense of a long subcategory
|
// 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) {
|
> span:last-of-type:not(:first-of-type) {
|
||||||
flex: 1 0 auto;
|
flex-shrink: 10;
|
||||||
max-width: 50%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue