mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +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 {
|
export function set_layout_width(): void {
|
||||||
if (user_settings.fluid_layout_width) {
|
if (user_settings.fluid_layout_width) {
|
||||||
$(".header-main, .app .app-main, #compose-container").css("max-width", "inherit");
|
$("body").addClass("fluid_layout_width");
|
||||||
} else {
|
} 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);
|
color: var(--color-text-default);
|
||||||
background-color: var(--color-background);
|
background-color: var(--color-background);
|
||||||
transition: background-color 200ms linear;
|
transition: background-color 200ms linear;
|
||||||
|
|
||||||
|
&.fluid_layout_width {
|
||||||
|
.header-main,
|
||||||
|
.app .app-main,
|
||||||
|
#compose-container {
|
||||||
|
max-width: 1400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
|||||||
Reference in New Issue
Block a user