Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_display_only_pill: Improve partial structure and css.
tnmkrc31016cac3a8
diff --git a/web/styles/input_pill.css b/web/styles/input_pill.cssindex ac694be3bda..9b05b21ffb0 100644--- a/web/styles/input_pill.css+++ b/web/styles/input_pill.css@@ -162,6 +162,8 @@}}+/* These pill are similar to .not-editable, but are meant to show+ profile cards when clicked. */.panel_user_list > .pill-container {background-color: hsl(0deg 0% 0% / 7%);@@ -178,9 +180,13 @@color: inherit;}- > .pill-value {- padding: 5px;- max-width: 165px;+ > .pill-label {+ margin: 0;++ > .pill-value {+ padding: 5px;+ max-width: 165px;+ }}}}diff --git a/web/templates/user_display_only_pill.hbs b/web/templates/user_display_only_pill.hbsindex 5c066e3c696..ecf3abf214e 100644--- a/web/templates/user_display_only_pill.hbs+++ b/web/templates/user_display_only_pill.hbs@@ -1,14 +1,16 @@-<span class="pill-container">+<span class="pill-container display_only_pill"><a data-user-id="{{user_id}}" class="view_user_profile pill" tabindex="0">{{#if img_src}}<img class="pill-image" src="{{img_src}}" />{{/if}}- <span class="pill-value">{{display_value}}</span>- {{#if is_current_user}} <span class="my_user_status">{{t "(you)"}}</span>{{/if}}- {{~#if should_add_guest_user_indicator}} <i>({{t 'guest'}})</i>{{~/if~}}- {{~#if deactivated}} ({{t 'deactivated'}}){{~/if~}}- {{~#if has_status~}}- {{~> status_emoji status_emoji_info~}}- {{~/if~}}+ <span class="pill-label">+ <span class="pill-value">{{display_value}}</span>+ {{#if is_current_user}}<span class="my_user_status">{{t '(you)'}}</span>{{/if}}+ {{~#if should_add_guest_user_indicator}} <i>({{t 'guest'}})</i>{{~/if~}}+ {{~#if deactivated}} ({{t 'deactivated'}}){{~/if~}}+ {{~#if has_status~}}+ {{~> status_emoji status_emoji_info~}}+ {{~/if~}}+ </span></a></span>