Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Display bot icon, status emoji as inline block.
Karl Stolley67da4d5a2be5
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 0b2c647f905..c3b3016235a 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -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 collidingwith 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. */diff --git a/web/templates/pm_list_item.hbs b/web/templates/pm_list_item.hbsindex 2973a72ebca..68f0c6090e3 100644--- a/web/templates/pm_list_item.hbs+++ b/web/templates/pm_list_item.hbs@@ -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}}