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.

use_info_popover: Fix long words overflowing out of container.

Aman Agrawal169f777b36ff
diff --git a/static/styles/popovers.css b/static/styles/popovers.css
index c83c973a7d1..2fad127cba6 100644
--- a/static/styles/popovers.css
+++ b/static/styles/popovers.css
@@ -780,12 +780,22 @@ ul {
.status_emoji {
height: 18px;
width: 18px;
- top: 2px;
-
/* Override the default 3px left margin for status emoji, which is
intended for their presentation elsewhere to the left of a
user's name. */
margin-left: 0;
+ margin-right: 2px;
+ }
+
+ #status_message {
+ padding: 1px 0;
+ display: flex;
+ align-items: baseline;
+ hyphens: auto;
+ }
+
+ .status_text {
+ overflow-wrap: anywhere;
}
}
diff --git a/static/templates/user_info_popover_content.hbs b/static/templates/user_info_popover_content.hbs
index 90af088f78b..c89f78d71e6 100644
--- a/static/templates/user_info_popover_content.hbs
+++ b/static/templates/user_info_popover_content.hbs
@@ -95,8 +95,12 @@
<div class="emoji status_emoji emoji-{{status_emoji_info.emoji_code}}"></div>
{{/if}}
{{/if}}
- {{status_text}}
- {{#if is_me}}(<a tabindex="0" class="clear_status">{{#tr}}clear{{/tr}}</a>){{/if}}
+ <span class="status_text">
+ {{status_text}}
+ {{#if is_me}}
+ <span class="clear_status_button">(<a tabindex="0" class="clear_status">{{#tr}}clear{{/tr}}</a>)</span>
+ {{/if}}
+ </span>
</span>
</li>
{{/if}}