mirror of https://github.com/zulip/zulip.git
css: Call set_layout_width even if the sbwidth is 0.
Historically, the logic that was extracted into set_layout_width only did something on non-macOS platforms, where sbwidth != 0 (i.e. scrollbars have nonzero width). However, with the addition of the fluid layout width option, that function does something if either sbwidth != 0 OR fluid_layout_width is enabled. At that point, we should just call that function unconditionally.
This commit is contained in:
parent
2f8e1c0393
commit
85c7eba3f9
|
@ -61,9 +61,8 @@ exports.initialize = function () {
|
|||
$("head").append("<style> @media (max-width: 1165px) { .compose-content, .header-main .column-middle { margin-right: " + (7 + sbWidth) + "px !important; } } " +
|
||||
"@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " + (7 + sbWidth) + "px !important; } } " +
|
||||
"</style>");
|
||||
|
||||
exports.set_layout_width();
|
||||
}
|
||||
exports.set_layout_width();
|
||||
};
|
||||
|
||||
exports.set_layout_width = function () {
|
||||
|
|
Loading…
Reference in New Issue