Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Move title and tab switcher to a fixed header.
sayamsamalaec8ef453cc2
diff --git a/static/styles/popovers.css b/static/styles/popovers.cssindex c0f36917004..9d177abc194 100644--- a/static/styles/popovers.css+++ b/static/styles/popovers.css@@ -346,19 +346,18 @@ ul {padding-right: 16px;}+ .modal__header {+ justify-content: center;+ }+.modal__close {- float: right;- margin: 0;+ position: absolute;+ right: 20px;}#tab-toggle {font-weight: initial;- margin: 6px 4px 6px 0;- width: 100%;-- .tab-switcher {- margin-left: 2px;- }+ padding: 0 16px 6px;}.name {@@ -406,18 +405,9 @@ ul {}}- #name {- font-size: 26px;- font-weight: 700;- margin-bottom: 5px;- max-width: 100%;- text-align: center;- line-height: 30px;-- #edit-button {- font-size: 18px;- margin-left: 10px;- }+ #edit-button {+ font-size: 18px;+ margin-left: 10px;}#default-section {@@ -473,14 +463,6 @@ ul {}}- &:not(.no-fields) {- #body {- padding-bottom: 10px;- padding-top: 4px;- margin-top: 10px;- }- }-.tab-data {.active {display: block;diff --git a/static/templates/user_profile_modal.hbs b/static/templates/user_profile_modal.hbsindex f49947f2317..917787aaa7f 100644--- a/static/templates/user_profile_modal.hbs+++ b/static/templates/user_profile_modal.hbs@@ -1,9 +1,8 @@<div class="micromodal" id="user-profile-modal" data-user-id="{{user_id}}" aria-hidden="true"><div class="modal__overlay" tabindex="-1" data-micromodal-close><div class="modal__container new-style{{#unless profile_data.length}} no-fields{{/unless}}" role="dialog" aria-modal="true" aria-labelledby="dialog_title">- <main class="modal__body" id="body" data-simplebar data-simplebar-auto-hide="false">- <button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>- <div id="name">+ <div class="modal__header">+ <h1 class="modal__title" id="name">{{full_name}}{{#if is_bot}}<i class="zulip-icon zulip-icon-bot" aria-hidden="true"></i>@@ -13,8 +12,11 @@<i class="fa fa-edit" id="edit-button" aria-hidden="true"></i></a>{{/if}}- </div>- <div id="tab-toggle" class="center"></div>+ </h1>+ <button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>+ </div>+ <div id="tab-toggle" class="center"></div>+ <main class="modal__body" id="body" data-simplebar data-simplebar-auto-hide="false"><div class="tab-data"><div class="tabcontent active" id="profile-tab"><div class="top">