Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
info_density: Correct legacy line height and apply to message box.
Karl Stolley2763be89776f
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex cf22f0f90fa..d88df6c2db8 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -64,7 +64,7 @@/* Information density and typography values *//* The legacy values here are updated via JavaScript */--base-font-size-px: 14px;- --base-line-height-unitless: calc(20 / 14);+ --base-line-height-unitless: 1.214;/*Message box elements and values.@@ -75,7 +75,6 @@/* 6px appears to provide 5px of space between the avatarand the selected-message outline, which is offset by -1px. */--message-box-vertical-margin: 6px;- --message-box-line-height: 1.214;--message-box-icon-width: 26px;--message-box-icon-height: 25px;/* The line-height on the sender line should coordinate with thediff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex 0534099bf5b..1750a8bb80a 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -203,7 +203,7 @@*/padding: 5px 0 0;color: var(--color-text-message-default);- line-height: var(--message-box-line-height);+ line-height: var(--base-line-height-unitless);min-height: 17px;display: block;position: relative;@@ -318,7 +318,7 @@display: block;/* Set the same line-height as on message content forme-messages. */- line-height: var(--message-box-line-height);+ line-height: var(--base-line-height-unitless);/* Ensure the same spacing below messages as for any otherparagraph.TODO: Coordinate this with other info-density variables. */