From 3fe8ad37df91013e56905f63be79c7817ab57be5 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Mon, 15 Jul 2024 23:06:29 +0530 Subject: [PATCH] settings: Refactor css for users and bots table. This commit makes the selectors for CSS applied to users and bots table more specific since the classes used before are generic and can be used at other places as well. --- web/styles/settings.css | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/web/styles/settings.css b/web/styles/settings.css index 70e13bf6c4..0c04f866bb 100644 --- a/web/styles/settings.css +++ b/web/styles/settings.css @@ -1840,10 +1840,13 @@ $option_title_width: 180px; } } - .user_row { - .user_name, - .email { - min-width: 8em; + #admin-user-list, + #admin-bot-list { + .user_row { + .user_name, + .email { + min-width: 8em; + } } } @@ -1856,11 +1859,19 @@ $option_title_width: 180px; } @media (width < $sm_min) { - .user_row, - .settings-section { - .bot_type, - .last_active { - display: none; + #admin-user-list, + #admin-bot-list { + .user_row, + .table-sticky-headers { + .bot_type, + .last_active { + display: none; + } + + .user_name, + .email { + min-width: 8em; + } } } @@ -1905,13 +1916,6 @@ $option_title_width: 180px; } } - .user_row { - .user_name, - .email { - min-width: 8em; - } - } - .admin_profile_fields_table { .profile_field_name, .profile_field_hint {