From 32ef1a618ded14403ecf0bc243dbbb570979e2f5 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 25 Mar 2024 13:36:00 -0400 Subject: [PATCH] Remove the glass border from modal spinners (#12367) It was not intentional, as these spinners are not a real dialog. (cherry picked from commit 10526c92bb676e862a18629764a66b5800f111e2) --- res/css/_common.pcss | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/res/css/_common.pcss b/res/css/_common.pcss index 5ecf6c4e946..20ed9dfa392 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -660,15 +660,23 @@ legend { } /* Spinner Dialog overide */ -.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog { - width: auto; - border-radius: 8px; - padding: 8px; - box-shadow: none; +.mx_Dialog_wrapper.mx_Dialog_spinner { + /* This is not a real dialog, so we shouldn't show a glass border */ + .mx_Dialog_border { + display: contents; + } + + .mx_Dialog { + inline-size: auto; + block-size: auto; + border-radius: 8px; + padding: 8px; + box-shadow: none; - /* Don't show scroll-bars on spinner dialogs */ - overflow-x: hidden; - overflow-y: hidden; + /* Don't show scroll-bars on spinner dialogs */ + overflow-x: hidden; + overflow-y: hidden; + } } /* TODO: Review mx_GeneralButton usage to see if it can use a different class */