left_sidebar: Avoid clipping tall glyphs in DM groups, topics.

This commit is contained in:
Karl Stolley
2025-08-11 16:17:50 -04:00
committed by Tim Abbott
parent 9ca22320cd
commit 7dce8df4e8

View File

@@ -1646,7 +1646,12 @@ li.active-sub-filter {
overflow-wrap: break-word;
line-height: var(--line-height-sidebar-topic-inner);
margin: var(--spacing-top-bottom-sidebar-topic-inner) 0;
/* To avoid clipping the tops of certain characters,
we set the top space with padding. But to make the
line-clamp effect work, we set the bottom space
with margin. */
padding-top: var(--spacing-top-bottom-sidebar-topic-inner);
margin: 0 0 var(--spacing-top-bottom-sidebar-topic-inner) 0;
}
}
@@ -1805,8 +1810,13 @@ li.active-sub-filter {
overflow-wrap: break-word;
line-height: var(--line-height-sidebar-topic-inner);
margin: var(--spacing-top-bottom-sidebar-topic-inner) 0;
padding: 0 var(--left-sidebar-before-unread-count-padding) 0 0;
/* To avoid clipping the tops of certain characters,
we set the top space with padding. But to make the
line-clamp effect work, we set the bottom space
with margin. */
padding: var(--spacing-top-bottom-sidebar-topic-inner)
var(--left-sidebar-before-unread-count-padding) 0 0;
margin-bottom: var(--spacing-top-bottom-sidebar-topic-inner);
}
/*