css: Use classname for all-messages-search-caution 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:
Shubham Padia 2024-09-03 06:46:14 +00:00 committed by Tim Abbott
parent 82b68e9bdb
commit fe44ce3e24
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ p.n-margin {
padding-left: 26px;
text-indent: -10px;
& i {
.all-messages-search-caution-icon {
margin: 0 3px 0 1px;
}

View File

@ -11,7 +11,7 @@
</div>
<div class="all-messages-search-caution hidden-for-spectators" hidden>
<p>
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>
<i class="all-messages-search-caution-icon fa fa-exclamation-circle" aria-hidden="true"></i>
{{#tr}}
End of results from your
<z-link>history</z-link>.