Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_area: Hide action icons based on container query.
Karl Stolley7fde5fd0a4d3
diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex 3f1177e388a..6f2838744de 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -478,7 +478,7 @@/* Ensure square icons for better centering. */line-height: 1;- @media (width < $sm_min), ((width >= $md_min) and (width < $mc_min)) {+ @container message-lists (width < $cq_sm_min) {/* This is intended to target the first message_controls childwhen there are 3 displayed. */.message_control_button:nth-last-child(3) {@@ -486,6 +486,20 @@}}+ /* Media-query fallback. Note that because we're treating+ #message-lists-container as its own container, we can+ express a much simpler query there. The more complex+ conditions are necessary only for media queries. */+ @media (width < $sm_min), ((width >= $md_min) and (width < $mc_min)) {+ .without-container-query-support {+ /* This is intended to target the first message_controls child+ when there are 3 displayed. */+ .message_control_button:nth-last-child(3) {+ display: none;+ }+ }+ }+/* This is a bit tricky; we need to reserve space for the messagecontrols even when the message isn't hovered, so that hoverdoesn't disturb the layout. Usually that would be just