Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_header: Hide action buttons for smaller widths.
apoorvapendsefb40a7fc61f3
diff --git a/web/src/css_variables.ts b/web/src/css_variables.tsindex daef70b2fa5..00b5866bbb0 100644--- a/web/src/css_variables.ts+++ b/web/src/css_variables.ts@@ -22,6 +22,9 @@ const base_em_px = 16;// em to user-chosen font-size.const settings_overlay_sidebar_collapse_breakpoint = 800;+// Breakpoint for hiding message action buttons+const message_actions_hide_width = 730;+export const media_breakpoints = {xs_min: xs + "px",sm_min: sm + "px",@@ -35,6 +38,7 @@ export const media_breakpoints = {short_navbar_cutoff_height: "600px",settings_overlay_sidebar_collapse_breakpoint:settings_overlay_sidebar_collapse_breakpoint / 14 + "em",+ message_actions_hide_width_min: message_actions_hide_width + "px",};export const container_breakpoints = {@@ -45,6 +49,7 @@ export const container_breakpoints = {cq_ml_min: ml / base_em_px + "em",cq_sm_min: sm / base_em_px + "em",cq_mm_min: mm / base_em_px + "em",+ cq_message_actions_hide_width_min: message_actions_hide_width / base_em_px + "em",};export const media_breakpoints_num = {@@ -58,4 +63,5 @@ export const media_breakpoints_num = {mm,ms,settings_overlay_sidebar_collapse_breakpoint,+ message_actions_hide_width,};diff --git a/web/styles/message_header.css b/web/styles/message_header.cssindex 60b300310fd..dd6fc2440c9 100644--- a/web/styles/message_header.css+++ b/web/styles/message_header.css@@ -327,3 +327,43 @@cursor: pointer;}}++@container message-lists (width < $cq_message_actions_hide_width_min) {+ .recipient_bar_controls {+ /* We don't want the controls container to occupy the space freed+ up by hiding the message action icons so it can be+ utilized to show more of the topic */+ flex-grow: 0;+ margin-left: auto;++ .recipient-bar-control {+ display: none;++ /* Always show the vdots */+ &.recipient-row-topic-menu {+ display: block;+ }+ }+ }+}++@media (width < $message_actions_hide_width_min) {+ .without-container-query-support {+ .recipient_bar_controls {+ /* We don't want the controls container to occupy the space freed+ up by hiding the message action icons so it can be+ utilized to show more of the topic */+ flex-grow: 0;+ margin-left: auto;++ .recipient-bar-control {+ display: none;++ /* Always show the vdots */+ &.recipient-row-topic-menu {+ display: block;+ }+ }+ }+ }+}