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.

css: Fix fluid_layout_width setting.

Tim Abbott1f8b3fd09a0b
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 0c146d38f62..6399d5ed0b4 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -233,8 +233,6 @@
display: flex;
flex-direction: column;
width: 100%;
- /* This should match the value for .app-main */
- max-width: 1400px;
margin: auto;
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 3fe26443e5e..eb442174884 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -29,11 +29,18 @@ body {
background-color: var(--color-background);
transition: background-color 200ms linear;
+ /* Implementation for fluid layout width setting. */
+ .header-main,
+ .app .app-main,
+ #compose-container {
+ max-width: 1400px;
+ }
+
&.fluid_layout_width {
.header-main,
.app .app-main,
#compose-container {
- max-width: 1400px;
+ max-width: inherit;
}
}
}
@@ -540,10 +547,6 @@ p.n-margin {
.app-main,
.header-main {
width: 100%;
- /* `max-width` is changed based on `fluid_layout_width` setting in
- `scroll_bar.js`. User may or may not see a flash of mispositioned content
- based on how quickly the JS code is executed. */
- max-width: 1400px;
min-width: 950px;
margin: 0 auto;
padding: 0;