From fe44ce3e24a612dcc8dfafc8f095fa80ad29d6db Mon Sep 17 00:00:00 2001 From: Shubham Padia Date: Tue, 3 Sep 2024 06:46:14 +0000 Subject: [PATCH] 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. --- web/styles/zulip.css | 2 +- web/templates/message_feed_errors.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/styles/zulip.css b/web/styles/zulip.css index cb29ebe43b..4a64c52954 100644 --- a/web/styles/zulip.css +++ b/web/styles/zulip.css @@ -137,7 +137,7 @@ p.n-margin { padding-left: 26px; text-indent: -10px; - & i { + .all-messages-search-caution-icon { margin: 0 3px 0 1px; } diff --git a/web/templates/message_feed_errors.hbs b/web/templates/message_feed_errors.hbs index 1bf15b410f..910ce1c9ee 100644 --- a/web/templates/message_feed_errors.hbs +++ b/web/templates/message_feed_errors.hbs @@ -11,7 +11,7 @@