Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Karl Stolley7dce8df4e87d
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 495517cced5..894663d8665 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -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);
}
/*