mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
scroll_bar: Use a CSS class to toggle fluid layout.
This commit is contained in:
@@ -4,9 +4,9 @@ import {user_settings} from "./user_settings";
|
||||
|
||||
export function set_layout_width(): void {
|
||||
if (user_settings.fluid_layout_width) {
|
||||
$(".header-main, .app .app-main, #compose-container").css("max-width", "inherit");
|
||||
$("body").addClass("fluid_layout_width");
|
||||
} else {
|
||||
$(".header-main, .app .app-main, #compose-container").css("max-width", "1400px");
|
||||
$("body").removeClass("fluid_layout_width");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -27,6 +27,14 @@ body {
|
||||
color: var(--color-text-default);
|
||||
background-color: var(--color-background);
|
||||
transition: background-color 200ms linear;
|
||||
|
||||
&.fluid_layout_width {
|
||||
.header-main,
|
||||
.app .app-main,
|
||||
#compose-container {
|
||||
max-width: 1400px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
|
Reference in New Issue
Block a user