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.

app_layout: Establish containers for spec-aligned browsers.

Karl Stolleyd33d09eaf3d1
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 58148677d0c..9671c452faa 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -534,6 +534,26 @@ body.has-overlay-scrollbar {
}
}
+.with-container-query-support {
+ /* With spec-aligned container support, we
+ can establish em-aware containers to
+ query as needed.
+ Note that container queries can only
+ act on children of the container, so
+ at least for now, we include separate
+ queries for #header-container in the
+ navbar as well as .app-main in capable
+ browsers.
+ */
+ #header-container {
+ container: header-container / inline-size;
+ }
+
+ .app {
+ container: app / inline-size;
+ }
+}
+
.column-middle,
#compose-content {
margin-right: var(--right-column-width);