Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
viewport: Conditionally set dvh height on html, body.
Karl Stolley76abc0920eb2
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex d82825dbabd..da4a8b7a558 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -164,6 +164,16 @@color-scheme: light;+ /* Variable for setting the viewport to full height.+ As of late 2025, we still support browsers (e.g.,+ Chrome 105) that do not support dynamic viewport+ units. 100% is the legacy full-height value. */+ --full-height-dynamic-viewport: 100%;++ @supports (height: 100dvh) {+ --full-height-dynamic-viewport: 100dvh;+ }+/*This is the header, aka the navbar.*/diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 9267c3e36f7..392476a7f6e 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -6,7 +6,7 @@ html {body,html {- height: 100%;+ height: var(--full-height-dynamic-viewport);touch-action: manipulation;}