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: Scope line-height adjustment to low-res screens.

Karl Stolley1984333454d1
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index acc568228cb..32e622ab9a8 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -691,10 +691,6 @@ li.active-sub-filter {
.left-sidebar-navigation-label-container {
.left-sidebar-navigation-label {
- /* Again, for the sake of low-resolution screens,
- we'll let the actual label take 1 as a line-height
- value, and allow grid to handle the alignment. */
- line-height: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -775,6 +771,13 @@ li.top_left_scheduled_messages {
.left-sidebar-navigation-label {
grid-area: row-content;
padding-right: var(--left-sidebar-before-unread-count-padding);
+
+ @media screen and (resolution <= 1x) {
+ /* For the sake of low-resolution screens,
+ we'll let the actual label take 1 as a line-height
+ value, and allow grid to handle the alignment. */
+ line-height: 1;
+ }
}
.unread_count {