UX: composer category dropdown height, truncation (#24420)

This commit is contained in:
Kris 2023-11-16 16:50:06 -05:00 committed by GitHub
parent d561a9ebd9
commit cdcf53573d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}
}