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.

info_density: Declare em-based line-height vars for sidebar rows.

Karl Stolley4405136ffb1b
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 769224f4eca..60648f8355a 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -58,6 +58,13 @@
--right-sidebar-width: 250px;
--left-sidebar-header-icon-width: 15px;
+ /* We base sidebar row heights on their line heights.
+ Prominent rows include things like headers (e.g., VIEWS)
+ as well as navigation items. Everything else takes
+ the smaller line-height. */
+ --line-height-sidebar-row-prominent: 1.7142em; /* 24px / 14px em */
+ --line-height-sidebar-row: 1.5714em; /* 22px / 14px em */
+
/* Tippy popover related values */
--navbar-popover-menu-min-width: 230px;
--message-actions-popover-min-width: 230px;