Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile_modal: Move avatar in full profile to the right.
sayamsamalaebff0fd61ff
diff --git a/static/styles/popovers.css b/static/styles/popovers.cssindex d74ed731f58..1c4fe46a5d7 100644--- a/static/styles/popovers.css+++ b/static/styles/popovers.css@@ -252,6 +252,12 @@ ul {line-height: 1;}+ #profile-tab {+ display: flex;+ justify-content: space-between;+ margin: 0 5px;+ }+#avatar {display: inline-block;height: 180px;@@ -259,7 +265,6 @@ ul {background-size: cover;background-position: center;border-radius: 5px;- margin-right: 10px;border: 1px solid hsla(0, 0%, 0%, 0.2);&.guest-avatar::after {diff --git a/static/templates/user_profile_modal.hbs b/static/templates/user_profile_modal.hbsindex d2b4dc4d36e..a05d5751d90 100644--- a/static/templates/user_profile_modal.hbs+++ b/static/templates/user_profile_modal.hbs@@ -14,55 +14,61 @@<div id="tab-toggle" class="center"></div><div class="tab-data"><div class="tabcontent active" id="profile-tab">- <div id="avatar" {{#if user_is_guest}} class="guest-avatar" {{/if}}- style="background-image: url('{{user_avatar}}');">- </div>- <div id="default-section">- {{#if show_email}}- <div id="email" class="default-field">- <span class="name">{{#tr}}Email{{/tr}}</span>- <span class="value">{{email}}</span>- </div>- {{/if}}- <div id="user-id" class="default-field">- <span class="name">{{#tr}}User ID{{/tr}}</span>- <span class="value">{{user_id}}</span>- </div>- <div id="user-type" class="default-field">- <span class="name">{{#tr}}Role{{/tr}}</span>- <span class="value">{{user_type}}</span>- </div>- <div id="date-joined" class="default-field">- <span class="name">{{#tr}}Joined{{/tr}}</span>- <span class="value">{{date_joined}}</span>+ <div class="column-wrapper">+ <div id="default-section">+ {{#if show_email}}+ <div id="email" class="default-field">+ <span class="name">{{#tr}}Email{{/tr}}</span>+ <span class="value">{{email}}</span>+ </div>+ {{/if}}+ <div id="user-id" class="default-field">+ <span class="name">{{#tr}}User ID{{/tr}}</span>+ <span class="value">{{user_id}}</span>+ </div>+ <div id="user-type" class="default-field">+ <span class="name">{{#tr}}Role{{/tr}}</span>+ <span class="value">{{user_type}}</span>+ </div>+ <div id="date-joined" class="default-field">+ <span class="name">{{#tr}}Joined{{/tr}}</span>+ <span class="value">{{date_joined}}</span>+ </div>+ <span class="value">{{last_seen}}</span>+ {{#if user_time}}+ <div class="default-field">+ <span class="name">{{#tr}}Local time{{/tr}}</span>+ <span class="value">{{user_time}}</span>+ </div>+ {{/if}}</div>- <span class="value">{{last_seen}}</span>- {{#if user_time}}- <div class="default-field">- <span class="name">{{#tr}}Local time{{/tr}}</span>- <span class="value">{{user_time}}</span>+ <div id="content">+ {{#each profile_data}}+ <div data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">+ <div class="name">{{this.name}}</div>+ {{#if this.is_user_field}}+ <div class="pill-container not-editable" data-field-id="{{this.id}}">+ <div class="input" contenteditable="false" style="display: none;"></div>+ </div>+ {{else if this.is_link}}+ <a href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>+ {{else if this.is_external_account}}+ <a href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>+ {{else}}+ {{#if this.rendered_value}}+ <div class="value rendered_markdown">{{rendered_markdown this.rendered_value}}</div>+ {{else}}+ <div class="value">{{this.value}}</div>+ {{/if}}+ {{/if}}+ </div>+ {{/each}}</div>- {{/if}}</div>- <div id="content">- {{#each profile_data}}- <div data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">- <div class="name">{{this.name}}</div>- {{#if this.is_user_field}}- <div class="pill-container not-editable" data-field-id="{{this.id}}">- <div class="input" contenteditable="false" style="display: none;"></div>- </div>- {{else if this.is_link}}- <a href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>- {{else if this.is_external_account}}- <a href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>- {{else if this.rendered_value}}- <div class="value rendered_markdown">{{rendered_markdown this.rendered_value}}</div>- {{else}}- <div class="value">{{this.value}}</div>- {{/if}}- </div>- {{/each}}+ <div class="column-wrapper">+ <div id="avatar" {{#if user_is_guest}} class="guest-avatar" {{/if}}+ style="background-image: url('{{user_avatar}}');">+ </div></div></div>