left_sidebar: Clamp topics to two lines, breaking words as needed.

This commit is contained in:
Karl Stolley 2024-11-14 14:47:55 -05:00 committed by Tim Abbott
parent 6465c494e5
commit 60ce314c87
1 changed files with 8 additions and 1 deletions

View File

@ -1123,7 +1123,14 @@ li.top_left_scheduled_messages {
} }
.sidebar-topic-name-inner { .sidebar-topic-name-inner {
display: block; /* Clamp multi-line topics to two lines. */
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
/* Break overflowing words as necessary. */
overflow-wrap: break-word;
line-height: var(--line-height-sidebar-topic-inner); line-height: var(--line-height-sidebar-topic-inner);
margin: var(--spacing-top-bottom-sidebar-topic-inner) 0; margin: var(--spacing-top-bottom-sidebar-topic-inner) 0;
} }