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.

users: Add ellipsis only on names and show the indicator always.

Sahil Batraa88acc464268
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index dfbaf6d4341..92b84e14a20 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -363,6 +363,10 @@ $time_column_min_width: 42px; /* + padding */
white-space: normal;
display: inline;
}
+
+ .sender_name_text {
+ max-width: 100%;
+ }
}
&.content_edit_mode {
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 50470212749..3023407d2bf 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1784,8 +1784,13 @@ td.pointer {
.sender_name_text {
overflow: hidden;
- text-overflow: ellipsis;
white-space: nowrap;
+ display: inline-flex;
+
+ .user-name {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}
diff --git a/web/templates/presence_row.hbs b/web/templates/presence_row.hbs
index a8ca9e2ff7d..3d57700f377 100644
--- a/web/templates/presence_row.hbs
+++ b/web/templates/presence_row.hbs
@@ -8,7 +8,7 @@
{{#if user_list_style.WITH_STATUS}}
<div class="user-name-and-status-wrapper">
<div class="user-name-and-status-emoji">
- <span class="user-name">{{> user_full_name}}</span>
+ {{> user_full_name}}
{{> status_emoji status_emoji_info}}
</div>
<span class="status-text">{{status_text}}</span>
diff --git a/web/templates/user_full_name.hbs b/web/templates/user_full_name.hbs
index 8103610f43d..f7b33372039 100644
--- a/web/templates/user_full_name.hbs
+++ b/web/templates/user_full_name.hbs
@@ -1,5 +1,5 @@
{{#if should_add_guest_user_indicator}}
-{{#tr}}{name} <i class="guest-indicator">(guest)</i>{{/tr}}
+<span class="user-name">{{name}}</span>&nbsp;<i class="guest-indicator">({{t 'guest' }})</i>
{{else}}
<span class="user-name">{{name}}</span>
{{/if}}