Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_row: Refine grid for better-fitting action icons.
Karl Stolleye352ab628c41
diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex f8d83a6d70a..e395bbe6f03 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -104,9 +104,7 @@in the column. */grid-template:var(--message-box-sender-line-height) repeat(3, auto) /- var(--message-box-avatar-column-width) minmax(0, 1fr) calc(- 3 * var(--message-box-icon-width)- )+ var(--message-box-avatar-column-width) minmax(0, 1fr) max-content8px minmax(var(--message-box-timestamp-column-width), max-content);/* Named grid areas provide flexibility for positioning grid itemsreliably, even if the row or column definitions of the grid change. */@@ -128,14 +126,6 @@);}- @media (width < $sm_min), ((width >= $md_min) and (width < $mc_min)) {- grid-template-columns:- var(--message-box-avatar-column-width) minmax(0, 1fr) calc(- 2 * var(--message-box-icon-width)- )- 8px minmax(var(--message-box-timestamp-column-width), max-content);- }-.message_edit_notice {grid-area: edited;}@@ -542,10 +532,10 @@.edit_content {/* Icons for editing content are determined on message hover;- we set an empty `.edit_content` to have 0 height in order to- preserve the layout of the other icons prior to any hovering. */+ we set an empty `.edit_content` to take the eventual width+ of whatever icon is displayed, so as to avoid a grid shift. */&:empty {- height: 0;+ width: var(--message-box-icon-width);}&:hover {