From a61199c7d2288ec0e0e1dfe6bf154dff7dd0f656 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 8 Jun 2023 19:44:44 +0000 Subject: [PATCH] Apply align-self and justify-self values to buttons on General user settings tab only In order to avoid those values from being applied to the inline buttons on mx_FilteredDeviceListHeader --- res/css/views/settings/tabs/_SettingsTab.pcss | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/res/css/views/settings/tabs/_SettingsTab.pcss b/res/css/views/settings/tabs/_SettingsTab.pcss index 17779783d4b..8f0adf93cf3 100644 --- a/res/css/views/settings/tabs/_SettingsTab.pcss +++ b/res/css/views/settings/tabs/_SettingsTab.pcss @@ -29,17 +29,20 @@ limitations under the License. gap: $spacing-8; flex-grow: 1; } - // never want full width buttons - // event when other content is 100% width - .mx_AccessibleButton { - align-self: flex-start; - justify-self: flex-start; - } .mx_Field { margin: 0; flex: 1; } + + #mx_tabpanel_USER_GENERAL_TAB & { + /* On General settings tab never want full width buttons */ + /* event when other content is 100% width */ + .mx_AccessibleButton { + align-self: flex-start; + justify-self: flex-start; + } + } } .mx_SettingsTab_warningText {