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: Set calculated font-size on body.

Karl Stolleydc60317dadec
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 3ce77c20453..5f2b1162ed7 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -169,7 +169,9 @@
*/
padding: var(--message-box-markdown-aligned-vertical-space) 0 0;
color: var(--color-text-message-default);
- font-size: var(--base-font-size-px);
+ /* We explicitly set line-height here so that
+ the message area is not beholden to the legacy
+ `max()` declaration on `body`. */
line-height: var(--base-line-height-unitless);
min-height: 17px;
display: block;
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index eda0ba9205b..f6dff701262 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -23,7 +23,7 @@ body {
width: 100%;
margin: 0;
padding: 0;
- font-size: 14px;
+ font-size: var(--base-font-size-px);
/* 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. */