buddy_list: Add ellipses cutoff for headers that overflow.

This is mostly for translations.
This commit is contained in:
evykassirer
2024-12-05 15:38:11 -08:00
committed by Tim Abbott
parent 253e7d5dff
commit 3910211518
2 changed files with 10 additions and 1 deletions

View File

@@ -261,6 +261,14 @@ $user_status_emoji_width: 24px;
opacity: var(--opacity-sidebar-heading);
transition: opacity 140ms linear;
grid-area: row-content;
display: flex;
}
.buddy-list-heading-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 2px;
}
.buddy-list-subsection-header.no-display {

View File

@@ -1,4 +1,5 @@
<i class="buddy-list-section-toggle zulip-icon zulip-icon-heading-triangle-right {{#if is_collapsed}}rotate-icon-right{{else}}rotate-icon-down{{/if}}" aria-hidden="true"></i>
<h5 id="{{id}}" data-user-count="{{user_count}}" class="buddy-list-heading no-style hidden-for-spectators">
{{header_text}} (<span class="buddy-list-heading-user-count">{{user_count}}</span>)
<span class="buddy-list-heading-text">{{header_text}}</span>
(<span class="buddy-list-heading-user-count">{{user_count}}</span>)
</h5>