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: Disable background scrolling when case studies dropdown is open.

Aman Agrawal15b333f568b2
diff --git a/web/styles/portico/navbar.css b/web/styles/portico/navbar.css
index 28c930d00b2..59dec981b96 100644
--- a/web/styles/portico/navbar.css
+++ b/web/styles/portico/navbar.css
@@ -293,6 +293,15 @@ details summary::-webkit-details-marker {
);
}
+/* Prevent background scrolling when the case studies dropdown
+ covers the full viewport height on narrower desktop screens.
+ Lower bound excludes widths where the desktop navbar is hidden. */
+@media (width > 1100px) and (width <= 1300px) {
+ body:has(#top-menu-tab-case-studies:checked) {
+ overflow: hidden;
+ }
+}
+
.top-menu-tab .top-menu-tab-user-label {
max-width: 140px;
padding-right: 28px;