Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
info_density: Set a minimum line-height on body.
Karl Stolley3d04f7dbda48
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex ad13f73f642..769224f4eca 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -72,6 +72,9 @@var(--markdown-interelement-space-px) * 2);+ /* Legacy values */+ --legacy-body-line-height-unitless: calc(20 / 14);+.more-dense-mode {/* The legacy values here are not altered by JavaScript */--base-font-size-px: 14px;diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 9f870085032..a0250686804 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -24,7 +24,13 @@ body {margin: 0;padding: 0;font-size: 14px;- line-height: calc(20 / 14);+ /* The line-height used in most of the UI should be at least+ its legacy value, but should expand with larger base+ line-height values. */+ line-height: max(+ var(--legacy-body-line-height-unitless),+ var(--base-line-height-unitless)+ );font-family: "Source Sans 3 VF", sans-serif;color: var(--color-text-default);background-color: var(--color-background);