user_profile: Convert preview profile to sticky button.

Having the preview profile button always visible makes it more
accessible when the user is at a random scroll positon in the
profile settings.
This commit is contained in:
Sayam Samal 2022-11-08 04:05:23 +05:30 committed by Tim Abbott
parent a516a13220
commit cfacb6fe25
2 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

@ -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>