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.

navbar: Hide view, channel descriptions at small viewports.

Karl Stolleyf70b47878ade
diff --git a/web/src/css_variables.ts b/web/src/css_variables.ts
index cd0347e8f93..c483a581508 100644
--- a/web/src/css_variables.ts
+++ b/web/src/css_variables.ts
@@ -38,6 +38,7 @@ export const container_breakpoints = {
cq_xl_min: xl / base_em_px + "em",
cq_lg_min: lg / base_em_px + "em",
cq_md_min: md / base_em_px + "em",
+ cq_sm_min: sm / base_em_px + "em",
cq_mm_min: mm / base_em_px + "em",
};
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 044818f2ed3..c1ec8cc4b4a 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1723,6 +1723,12 @@ body:not(.hide-left-sidebar) {
}
}
+@container header-container (width <= $cq_sm_min) {
+ .narrow_description {
+ display: none;
+ }
+}
+
/* Begin fallback media queries. */
@media (width < $xl_min) {
.without-container-query-support {
@@ -1804,6 +1810,14 @@ body:not(.hide-left-sidebar) {
}
}
+@media (width <= $sm_min) {
+ .without-container-query-support {
+ .narrow_description {
+ display: none;
+ }
+ }
+}
+
/* End fallback media queries. */
/* Begin viewport state queries. */