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_profile_modal: Move presence activity status to modal header.

Sayam Samalf204a4c5920b
diff --git a/static/styles/popovers.css b/static/styles/popovers.css
index 403a4ca8273..fc378f114ab 100644
--- a/static/styles/popovers.css
+++ b/static/styles/popovers.css
@@ -302,7 +302,7 @@ ul {
}
}
-.popover_user_presence {
+.user_profile_presence {
width: 8px;
height: 8px;
margin: 0 5px;
@@ -350,6 +350,11 @@ ul {
justify-content: center;
}
+ .popover_user_presence {
+ margin: 5px 10px;
+ vertical-align: middle;
+ }
+
.modal__close {
position: absolute;
right: 20px;
@@ -418,11 +423,6 @@ ul {
}
}
- #user-status {
- text-align: center;
- margin: 0 0 10px;
- }
-
hr {
border: 1px solid hsl(0, 0%, 93%);
margin: 5px 0;
diff --git a/static/templates/user_profile_modal.hbs b/static/templates/user_profile_modal.hbs
index 9872237ad1f..918ab63fbd3 100644
--- a/static/templates/user_profile_modal.hbs
+++ b/static/templates/user_profile_modal.hbs
@@ -2,6 +2,9 @@
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container new-style" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
<div class="modal__header">
+ <div class="tippy-zulip-tooltip" data-tippy-content="{{last_seen}}">
+ <span class="{{user_circle_class}} user_circle user_profile_presence"></span>
+ </div>
<h1 class="modal__title" id="name">
{{full_name}}
{{#if is_bot}}
@@ -60,10 +63,6 @@
<div id="avatar" {{#if user_is_guest}} class="guest-avatar" {{/if}}
style="background-image: url('{{user_avatar}}');">
</div>
- <div id="user-status" class="default-field">
- <span class="value">{{last_seen}}</span>
- <span class="{{user_circle_class}} user_circle popover_user_presence"></span>
- </div>
</div>
</div>
<div class="bottom">