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.

emoji: Display status emoji as inline-flex in sender row.

Karl Stolleyfbfc72cb0572
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 06ebd2ded87..26c4f1287af 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2655,6 +2655,19 @@ select.invite-as {
margin-right: 0;
}
+.inline-status-emoji {
+ /* Treat as an inline flex container, with an anonymous block around
+ the username text node, for positioning status emoji */
+ display: inline-flex;
+
+ .status-emoji {
+ /* Preserve the distance between the emoji
+ and username that was previously due to
+ whitespace. */
+ margin-left: 6px;
+ }
+}
+
/* FIXME: Combine this rule with the one in portico.css somehow? */
#pw_strength {
width: 100%;
diff --git a/web/templates/message_body.hbs b/web/templates/message_body.hbs
index 1ecfd736359..51703382def 100644
--- a/web/templates/message_body.hbs
+++ b/web/templates/message_body.hbs
@@ -4,7 +4,7 @@
<span class="message_sender no-select">
{{#if include_sender}}
<span class="sender_info_hover sender_name auto-select" role="button" tabindex="0">
- <span class="view_user_card_tooltip" data-tooltip-template-id="view-user-card-tooltip-template">
+ <span class="view_user_card_tooltip inline-status-emoji" data-tooltip-template-id="view-user-card-tooltip-template">
{{msg/sender_full_name}}
{{#unless status_message}}
{{> status_emoji msg/status_emoji_info}}