left_sidebar: Display bot icon, status emoji as inline block.

This commit is contained in:
Karl Stolley
2025-03-28 14:32:55 -04:00
committed by Tim Abbott
parent 131e031f1c
commit 67da4d5a2b
2 changed files with 12 additions and 17 deletions

View File

@@ -271,6 +271,7 @@
.zulip-icon:not(.user-circle) {
color: var(--color-left-sidebar-dm-partners-icon);
vertical-align: -0.2em;
}
}
@@ -914,24 +915,17 @@ li.top_left_scheduled_messages {
grid-area: row-content;
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 {
/* Prevent status emoji from colliding
with unread counts. */
margin-right: 3px;
/* To make status emoji look good with
multiline usernames, we need to fall
back to inline-block display here. */
display: inline-block;
vertical-align: -0.25em;
}
/* New grid definitions here. */

View File

@@ -8,11 +8,12 @@
{{/if}}
<a href="{{url}}" class="conversation-partners">
<span class="conversation-partners-list">{{recipients}}</span>
{{> status_emoji status_emoji_info}}
{{#if is_bot}}
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}
<span class="conversation-partners-list">{{recipients}} {{> status_emoji status_emoji_info}}
{{#if is_bot}}
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}
</span>
</a>
<div class="dm-markers-and-unreads">
{{#if has_unread_mention}}