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.

media_query: Use 767px instead of 775px as md breakpoint.

Aman Agrawale941ee4a15a0
diff --git a/static/js/scroll_bar.js b/static/js/scroll_bar.js
index 94560fc4369..ba7d72bd1c1 100644
--- a/static/js/scroll_bar.js
+++ b/static/js/scroll_bar.js
@@ -63,7 +63,9 @@ exports.initialize = function () {
") { .compose-content, .header-main .column-middle { margin-right: " +
(7 + sbWidth) +
"px !important; } } " +
- "@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " +
+ "@media (max-width: " +
+ media_breakpoints["xl-max"] +
+ ") { .fixed-app .column-middle { margin-left: " +
(7 + sbWidth) +
"px !important; } } " +
"</style>",
diff --git a/static/styles/compose.css b/static/styles/compose.css
index 1621f101a8b..7c7c99a096b 100644
--- a/static/styles/compose.css
+++ b/static/styles/compose.css
@@ -503,7 +503,7 @@ a#undo_markdown_preview {
}
}
-@media (max-width: 775px) {
+@media (max-width: $md-max) {
.compose-content {
margin-right: 7px;
margin-left: 7px;
diff --git a/static/styles/right_sidebar.css b/static/styles/right_sidebar.css
index a47e8c8a2c6..1e5ac3ad9b2 100644
--- a/static/styles/right_sidebar.css
+++ b/static/styles/right_sidebar.css
@@ -210,7 +210,7 @@
}
}
-@media (max-width: 775px) {
+@media (max-width: $md-max) {
#user_search_section .user-list-filter {
/* input should be 100% - 6px padding x2 - 1px border x2. */
width: calc(100% - 12px - 2px);
diff --git a/static/styles/typing_notifications.css b/static/styles/typing_notifications.css
index f06f295f24e..6b710824e9b 100644
--- a/static/styles/typing_notifications.css
+++ b/static/styles/typing_notifications.css
@@ -17,7 +17,7 @@
}
}
-@media (max-width: 775px) {
+@media (max-width: $md-max) {
#typing_notifications {
margin-right: 7px;
margin-left: 7px;
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 337a145deda..a068633b867 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -2680,7 +2680,7 @@ select.inline_select_topic_edit {
}
}
-@media (max-width: 775px) {
+@media (max-width: $md-max) {
body {
padding: 0;
}