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.

specator_view: Avoid Search overlap with large Log in button.

Karl Stolley6915ed51d50b
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index a02ecf09014..19c01533f01 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1717,6 +1717,17 @@ body:not(.hide-left-sidebar) {
}
}
+body:not(.spectator-view) {
+ /* The large Log In button for spectators makes this rule
+ inappropriate for that view. */
+ @container header-container (width < $cq_xl_min) {
+ #navbar-middle {
+ /* = (width of button, square with header) * 4 (number of buttons) + 3px extra margin. */
+ margin-right: var(--right-column-collapsed-sidebar-width);
+ }
+ }
+}
+
/* We have some regrettable but temporarily necessary code duplication
in the queries that follow.
@@ -1728,13 +1739,6 @@ body:not(.hide-left-sidebar) {
media queries. The layout will not look as good as it could, but
essential scrolling behavior will be maintained. */
-@container header-container (width < $cq_xl_min) {
- #navbar-middle {
- /* = (width of button, square with header) * 4 (number of buttons) + 3px extra margin. */
- margin-right: var(--right-column-collapsed-sidebar-width);
- }
-}
-
@container app (width < $cq_xl_min) {
.app-main {
@extend %hide-right-sidebar;