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.

message_area: Establish message-lists container.

Karl Stolley45f2e239b962
diff --git a/web/src/css_variables.ts b/web/src/css_variables.ts
index 92d4e2233b9..73e500201c4 100644
--- a/web/src/css_variables.ts
+++ b/web/src/css_variables.ts
@@ -37,6 +37,7 @@ export const media_breakpoints = {
export const container_breakpoints = {
cq_xl_min: xl / base_em_px + "em",
cq_lg_min: lg / base_em_px + "em",
+ cq_mc_min: mc / base_em_px + "em",
cq_md_min: md / base_em_px + "em",
cq_ml_min: ml / base_em_px + "em",
cq_sm_min: sm / base_em_px + "em",
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 74fb946f784..3f1177e388a 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -1,3 +1,9 @@
+.with-container-query-support {
+ #message-lists-container {
+ container: message-lists / inline-size;
+ }
+}
+
.message_row {
display: grid;
/* Prevent the messagebox column from overflowing the 1fr