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.

left_sidebar: Provide inline-grid layout for DM row status emoji.

Karl Stolley65ed4d0ac28b
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index f79627f2e73..5539131f25f 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -666,6 +666,18 @@ li.top_left_scheduled_messages {
line-height: 18px;
overflow: hidden;
text-overflow: ellipsis;
+ /* Use an inline grid to provide a modern layout
+ for status emoji in DM rows, while preserving
+ the expected ellipsis behavior on long usernames
+ or large DM groups.
+ The 16px-tall emoji will also align well
+ vertically with the 18px line-height here. */
+ display: inline-grid;
+ /* Provide a two-column grid, sized to accommodate
+ the content of the conversation list and status
+ emoji, if any. */
+ grid-template-columns: repeat(2, minmax(0, max-content));
+ align-items: center;
}
.conversation-partners .status-emoji {