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: Convert preview profile to sticky button.

Sayam Samalcfacb6fe25aa
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 960dfc398ff..d69987e18e0 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -1398,8 +1398,9 @@ $option_title_width: 180px;
}
#show_my_user_profile_modal {
- width: 150px;
- margin-top: 20px;
+ width: 100%;
+ top: 20px;
+ position: sticky;
}
#show_my_user_profile_modal i {
diff --git a/static/templates/settings/profile_settings.hbs b/static/templates/settings/profile_settings.hbs
index aac6ad0c998..f8c903c8cf2 100644
--- a/static/templates/settings/profile_settings.hbs
+++ b/static/templates/settings/profile_settings.hbs
@@ -38,10 +38,6 @@
</form>
<form class="form-horizontal custom-profile-fields-form grid"></form>
- <button class="button rounded sea-green w-200 block" id="show_my_user_profile_modal">
- {{t 'Preview profile' }}
- <i class="fa fa-external-link" aria-hidden="true" title="{{t 'Preview profile' }}"></i>
- </button>
</div>
</div>
@@ -69,6 +65,10 @@
<span class="user-details-desc">{{date_joined_text}}</span>
</div>
</div>
+ <button class="button rounded sea-green w-200 block" id="show_my_user_profile_modal">
+ {{t 'Preview profile' }}
+ <i class="fa fa-external-link" aria-hidden="true" title="{{t 'Preview profile' }}"></i>
+ </button>
</div>
</div>
</div>