Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
media_query: Use 1199px instead of 1165px as xl breakpoint.
Aman Agrawal5a8150e34bf1
diff --git a/static/js/message_viewport.js b/static/js/message_viewport.jsindex 3736f970774..789a62ac25c 100644--- a/static/js/message_viewport.js+++ b/static/js/message_viewport.js@@ -1,5 +1,6 @@"use strict";+const {media_breakpoints} = require("./css_variables");const util = require("./util");let jwindow;@@ -305,9 +306,8 @@ exports.stop_auto_scrolling = function () {exports.is_narrow = function () {// This basically returns true when we hide the right sidebar for// the left_side_userlist skinny mode. It would be nice to have a less brittle- // test for this. See the "@media (max-width: 1165px)" section in- // media.css.- return window.innerWidth <= 1165;+ // test for this.+ return window.innerWidth <= media_breakpoints["xl-max"];};exports.system_initiated_animate_scroll = function (scroll_amount) {diff --git a/static/js/scroll_bar.js b/static/js/scroll_bar.jsindex e40bd8c3c81..94560fc4369 100644--- a/static/js/scroll_bar.js+++ b/static/js/scroll_bar.js@@ -1,5 +1,6 @@"use strict";+const {media_breakpoints} = require("./css_variables");// A few of our width properties in Zulip depend on the width of the// browser scrollbar that is generated at the far right side of the// page, which unfortunately varies depending on the browser and@@ -57,7 +58,9 @@ exports.initialize = function () {$("#keyboard-icon").css({right: sbWidth + 35 + "px"});$("head").append(- "<style> @media (max-width: 1165px) { .compose-content, .header-main .column-middle { margin-right: " ++ "<style> @media (max-width: " ++ media_breakpoints["xl-max"] ++ ") { .compose-content, .header-main .column-middle { margin-right: " +(7 + sbWidth) +"px !important; } } " +"@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " +diff --git a/static/styles/compose.css b/static/styles/compose.cssindex b0a24b9d78e..1621f101a8b 100644--- a/static/styles/compose.css+++ b/static/styles/compose.css@@ -497,7 +497,7 @@ a#undo_markdown_preview {}/* This max-width must be synced with message_viewport.is_narrow */-@media (max-width: 1165px) {+@media (max-width: $xl-max) {.compose-content {margin-right: 7px;}diff --git a/static/styles/right_sidebar.css b/static/styles/right_sidebar.cssindex d7b90a26a06..a47e8c8a2c6 100644--- a/static/styles/right_sidebar.css+++ b/static/styles/right_sidebar.css@@ -196,7 +196,7 @@}/* This max-width must be synced with message_viewport.is_narrow */-@media (max-width: 1165px) {+@media (max-width: $xl-max) {#sidebar-keyboard-shortcuts {/* This is supposed to fix this appearing improperly in narrowwindows. It's likely the wrong solution; a proper fix likelydiff --git a/static/styles/typing_notifications.css b/static/styles/typing_notifications.cssindex e6fccf2d009..f06f295f24e 100644--- a/static/styles/typing_notifications.css+++ b/static/styles/typing_notifications.css@@ -11,7 +11,7 @@}/* This max-width must be synced with message_viewport.is_narrow */-@media (max-width: 1165px) {+@media (max-width: $xl-max) {#typing_notifications {margin-right: 7px;}diff --git a/static/styles/zulip.css b/static/styles/zulip.cssindex 8da8689c36e..337a145deda 100644--- a/static/styles/zulip.css+++ b/static/styles/zulip.css@@ -2600,7 +2600,7 @@ select.inline_select_topic_edit {}/* This max-width must be synced with message_viewport.is_narrow */-@media (max-width: 1165px) {+@media (max-width: $xl-max) {.app-main,.header-main {min-width: 750px;diff --git a/templates/zerver/help/move-the-users-list-to-the-left-sidebar.md b/templates/zerver/help/move-the-users-list-to-the-left-sidebar.mdindex 73079099a4a..9448cb9e063 100644--- a/templates/zerver/help/move-the-users-list-to-the-left-sidebar.md+++ b/templates/zerver/help/move-the-users-list-to-the-left-sidebar.md@@ -1,8 +1,8 @@# Move the users list to the left sidebarBy default, the **User list** is displayed in the right sidebar, to the-right of the main message pane. However, in narrower windows (1165 pixels and-smaller) the right sidebar is hidden to save space.+right of the main message pane. However, in narrower windows (smaller than+1200 pixels) the right sidebar is hidden to save space.You can choose to move the **User list** to the left hand side, under the**Stream list**, in narrower windows.