From 707fd9ccf05251a627a3bc2f2a32f45bcd63000c Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 15 Jun 2023 12:22:15 +0000 Subject: [PATCH] Move style rules for AppWarning.tsx and AppPermission.tsx from _AppsDrawer.pcss to _common.pcss (#11094) Because the style rules do not belong to AppsDrawer.tsx and are used by other multiple components, it is sensible to manage the rules on _common.pcss rather than _AppsDrapwer.pcss to improve maintainability. --- res/css/_common.pcss | 9 +++++++++ res/css/views/rooms/_AppsDrawer.pcss | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/res/css/_common.pcss b/res/css/_common.pcss index 0c9a44474c..b0d2a1d209 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -695,6 +695,15 @@ legend { color: $username-variant8-color; } +.mx_AppWarning, +.mx_AppPermission { + text-align: center; + display: flex; + height: 100%; + flex-direction: column; + align-items: center; +} + @define-mixin ProgressBarColour $colour { color: $colour; &::-moz-progress-bar { diff --git a/res/css/views/rooms/_AppsDrawer.pcss b/res/css/views/rooms/_AppsDrawer.pcss index 306e4c103c..17095a4c54 100644 --- a/res/css/views/rooms/_AppsDrawer.pcss +++ b/res/css/views/rooms/_AppsDrawer.pcss @@ -305,15 +305,6 @@ limitations under the License. flex: 1; } -.mx_AppWarning, -.mx_AppPermission { - text-align: center; - display: flex; - height: 100%; - flex-direction: column; - align-items: center; -} - .mx_AppTile_loading { display: flex; flex-direction: column;