UX: Truncate long category names in sidebar (#17203)
This commit is contained in:
parent
4199ada1ce
commit
7b2ad1b931
|
@ -7,7 +7,9 @@
|
|||
@current-when={{@currentWhen}}
|
||||
@title={{@title}}
|
||||
>
|
||||
{{@content}}
|
||||
<span class="sidebar-section-link-content-text">
|
||||
{{@content}}
|
||||
</span>
|
||||
|
||||
{{#if @badgeText}}
|
||||
<span class="sidebar-section-link-content-badge">
|
||||
|
|
|
@ -84,13 +84,11 @@
|
|||
|
||||
.sidebar-section-link-wrapper {
|
||||
margin-left: 1.5em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sidebar-section-link {
|
||||
flex: 1 1 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.25em 0.5em;
|
||||
color: var(--primary-high);
|
||||
font-size: var(--font-down-1);
|
||||
|
@ -104,8 +102,24 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.badge-wrapper {
|
||||
font-size: 100%;
|
||||
.sidebar-section-link-content-badge {
|
||||
width: 30%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sidebar-section-link-content-text {
|
||||
width: 70%;
|
||||
|
||||
.badge-wrapper {
|
||||
font-size: 100%;
|
||||
width: 100%;
|
||||
|
||||
.category-name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue