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%;
|
width: 100%;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
}
|
|
||||||
|
|
||||||
#show_my_user_profile_modal i {
|
.show-user-profile-icon {
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
</div>
|
</div>
|
||||||
<button class="button rounded sea-green" id="show_my_user_profile_modal">
|
<button class="button rounded sea-green" id="show_my_user_profile_modal">
|
||||||
{{t 'Preview profile' }}
|
{{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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue