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.

app_layout: Calculate max-width using variablized values.

Karl Stolley1dad4dcdf705
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 48db9dffd2c..84102017417 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -380,6 +380,16 @@
--message-box-markdown-aligned-vertical-space: 5px;
}
+ /* Message area */
+ /* In the legacy layout at 16px/1em density, 918.6px is
+ the widest the message area gets, so we preserve this
+ value to better present a readable message area across
+ different info densities and the manual hiding of the
+ left and right sidebars.
+ 918.6px at 16px/1em
+ */
+ --message-area-max-width: 57.4125em;
+
/* Shared sidebar typography and effects values. */
--font-weight-sidebar-heading: 600;
--font-weight-sidebar-action-heading: 370;
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 02384e8122a..da6e7ff9a07 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -39,9 +39,10 @@ body {
.header-main,
.app .app-main,
#compose-container {
- /* 1417px at 14px/1em; (14px * 20.5em) - 12px + 880 + 250px = 1417px */
- max-width: 100.3571em;
- max-width: calc(var(--left-sidebar-max-width) + 62.8571em + 250px);
+ max-width: calc(
+ var(--left-sidebar-max-width) + var(--message-area-max-width) +
+ var(--right-column-max-width)
+ );
}
&.fluid_layout_width {