Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar: Set search-container width in CSS vars.
Karl Stolleyad588e74416e
diff --git a/web/styles/search.css b/web/styles/search.cssindex af859b764ac..5d5b14e9115 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -69,7 +69,7 @@}#searchbox-input-container {- width: 150px;+ width: var(--search-box-width);}.search-input {@@ -95,12 +95,6 @@}@media (width < $md_min) {- #searchbox-input-container {- /* On small screens, the input container/button becomes just- an icon. Width is to match the width of nearby buttons. */- width: 40px;- }-.search-input {opacity: 0;}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 26c4f1287af..3a359d31742 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -63,11 +63,16 @@ body {the height of its parent (i.e. the header height).*/--search-box-height: 28px;+ --search-box-width: 150px;@media (width < $sm_min) {--search-box-height: var(--header-height);}+ @media (width < $md_min) {+ --search-box-width: 40px;+ }+/*Since #navbar_alerts_wrapper can take variable height depending uponwindow width / language, we sync its height in navbar_alerts.js