Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Move style rules for AppWarning.tsx and AppPermission.tsx from _AppsD…
Browse files Browse the repository at this point in the history
…rawer.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.
  • Loading branch information
luixxiul authored Jun 15, 2023
1 parent 7236e48 commit 707fd9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions res/css/_common.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 0 additions & 9 deletions res/css/views/rooms/_AppsDrawer.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 707fd9c

Please sign in to comment.