Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recipient_row: Convert .message-header-contents to CSS grid.
Shubham Padia18b9cd70f2b7
diff --git a/web/styles/color_picker.css b/web/styles/color_picker.cssindex 4d942677232..070ddc5d0ef 100644--- a/web/styles/color_picker.css+++ b/web/styles/color_picker.css@@ -45,11 +45,13 @@background: var(--gradient-custom-swatch);}-.color-picker-popover .message-header-contents {+.color-picker-popover .message_header .message-header-contents {+ grid-template-columns: minmax(0, 1fr) 0 0 auto 0 0;border: none;}.color_picker_confirm_button {+ grid-area: controls;height: 100%;&:focus-visible {diff --git a/web/styles/message_header.css b/web/styles/message_header.cssindex aecf09d8a56..4b2d930bfd7 100644--- a/web/styles/message_header.css+++ b/web/styles/message_header.css@@ -13,9 +13,10 @@.message-header-contents {font-size: 1.0714em; /* 15px at 14px em */line-height: 1.2;- display: flex;+ display: grid;+ grid-template-areas: "stream-label separator topic controls error date";+ grid-template-columns: minmax(0, 1fr) 0 0 0 auto auto;align-items: center;- justify-content: space-between;height: 1.8666em; /* 28px at 15px em */border: 1px solid var(--color-message-header-contents-border);border-bottom-color: var(--color-message-header-contents-border-bottom);@@ -30,6 +31,14 @@-1px -5px 0 5px var(--color-background),1px -5px 0 0 var(--color-background);+ .message-header-contents {+ /* The separator column holds only the fixed-size chevron+ icon, so it gets an explicit width; the other columns+ hold variable-width content and stay auto/1fr. */+ grid-template-columns: auto 1em auto 1fr auto auto;+ align-items: stretch;+ }+& .message_label_clickable {user-select: text;color: var(--color-text-message-header);@@ -46,23 +55,26 @@}.stream_topic_separator {+ grid-area: separator;line-height: 0;+ display: flex;+ align-items: center;color: var(--color-message-header-icon-non-interactive);position: relative;top: 0.5px;}.stream_topic {- display: inline-block;+ grid-area: topic;+ display: flex;+ align-items: center;padding: 5px 6px 5px 2px;- height: 1.2142em; /* 17px at 14px em */- line-height: 1.2142em; /* 17px at 14px em */overflow: hidden;text-overflow: ellipsis;+ position: relative;+ top: 0.5px;.message_label_clickable.narrows_by_topic {- position: relative;- top: 0.5px;overflow: hidden;text-overflow: ellipsis;@@ -222,19 +234,18 @@var(--color-background);.recipient_row_date {- display: block;+ display: flex;}}}}.stream_label {+ grid-area: stream-label;display: flex;align-items: center;gap: 5px;padding: 5px 2px 5px 10px;- height: 1.2142em; /* 17px at 14px em */- line-height: 1.2142em; /* 17px at 14px em */position: relative;top: 0.5px;text-decoration: none;@@ -278,8 +289,8 @@}.recipient_bar_controls {+ grid-area: controls;display: flex;- flex-grow: 1;align-items: center;&.topic-edit-mode .recipient-bar-control {@@ -296,7 +307,12 @@}}+.error-icon-message-recipient {+ grid-area: error;+}+.recipient_row_date {+ grid-area: date;color: var(--color-date);font-size: calc(12em / 14);padding: 0 10px;@@ -315,7 +331,7 @@display: none;.sticky_header & {- display: block;+ display: flex;}}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex c12f30ecda9..78b9cbcce84 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -2430,7 +2430,6 @@ body:not(.spectator-view) {display: flex;align-items: center;justify-content: flex-end;- flex-grow: 1;color: var(--color-failed-message-send-icon);.zulip-icon {