mirror of https://github.com/zulip/zulip.git
css: Use classname for show_my_user_profile_modal icon styles.
Having the selector there affects the performance. See https://chat.zulip.org/#narrow/stream/6-frontend/topic/CSS.20selector.20performance/near/1845719 for more details.
This commit is contained in:
parent
a764e80a1b
commit
77ebdfac77
|
@ -1569,11 +1569,11 @@ $option_title_width: 180px;
|
|||
width: 100%;
|
||||
top: 20px;
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
#show_my_user_profile_modal i {
|
||||
padding-left: 2px;
|
||||
vertical-align: middle;
|
||||
.show-user-profile-icon {
|
||||
padding-left: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</div>
|
||||
<button class="button rounded sea-green" id="show_my_user_profile_modal">
|
||||
{{t 'Preview profile' }}
|
||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||
<i class="show-user-profile-icon fa fa-external-link" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue