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.

user_circles: Introduce icons into layout-corrected user modal.

Karl Stolleyde3aa9e8dd1c
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 20d51d4e89e..27c55c3d563 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -58,7 +58,6 @@
}
.user-profile-name-heading {
- padding-right: 1rem;
max-width: 80%;
display: flex;
align-items: center;
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 14dd010a4d2..9d89748c9cf 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -369,7 +369,6 @@ ul.popover-group-menu-member-list {
color: var(--color-text-popover-menu);
}
-.user_profile_presence,
.popover_user_presence {
width: var(--length-user-status-circle);
height: var(--length-user-status-circle);
@@ -381,13 +380,18 @@ ul.popover-group-menu-member-list {
flex-shrink: 0;
}
+.user-status-icon-wrapper {
+ display: flex;
+}
+
.user_profile_presence {
/* Remove font-size to allow this to scale
with the menu header text. Declaring font-size
here maintains the legacy design of keeping
the user-circle smaller, despite the larger
surrounding text and icons. */
- font-size: var(--base-font-size-px);
+ font-size: calc(var(--base-font-size-px) * 0.6666);
+ line-height: 1;
}
.bot-owner-name {
@@ -438,11 +442,6 @@ ul.popover-group-menu-member-list {
justify-content: center;
}
- .user_profile_presence {
- margin: 5px;
- vertical-align: middle;
- }
-
.modal__close {
position: absolute;
right: 20px;
@@ -506,12 +505,14 @@ ul.popover-group-menu-member-list {
.user-profile-manage-own-edit-button,
.user-profile-manage-others-edit-button {
+ display: flex;
text-decoration: none;
/* 15px at 22px/1em */
font-size: 0.6818em;
}
.user-profile-manage-own-copy-link-button {
+ display: flex;
/* 19px at 22px/1em */
font-size: 0.8638em;
text-decoration: none;
diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbs
index bb236bc4cce..f41c21fd002 100644
--- a/web/templates/user_profile_modal.hbs
+++ b/web/templates/user_profile_modal.hbs
@@ -5,8 +5,8 @@
<h1 class="modal__title user-profile-name-heading" id="name">
{{#unless is_bot}}
{{#if is_active}}
- <div class="tippy-zulip-tooltip" data-tippy-content="{{last_seen}}">
- <span class="{{user_circle_class}} user-circle user_profile_presence" data-presence-indicator-user-id="{{user_id}}"></span>
+ <div class="tippy-zulip-tooltip user-status-icon-wrapper" data-tippy-content="{{last_seen}}">
+ <span class="zulip-icon zulip-icon-{{user_circle_class}} {{user_circle_class}} user-circle user_profile_presence" data-presence-indicator-user-id="{{user_id}}"></span>
</div>
{{else}}
<div>