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

Commit 8e9f740

Browse files
authored
Allow AppTiles to shrink as much as necessary (#8805)
1 parent 3046094 commit 8e9f740

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

res/css/views/rooms/_AppsDrawer.scss

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ limitations under the License.
1616
*/
1717

1818
$MiniAppTileHeight: 200px;
19+
// TODO this should be 300px but that's too large
20+
$MinWidth: 240px;
1921

2022
.mx_AppsDrawer {
2123
margin: $container-gap-width;
@@ -88,6 +90,30 @@ $MiniAppTileHeight: 200px;
8890
opacity: 0.8;
8991
}
9092
}
93+
94+
.mx_AppTile {
95+
width: 50%;
96+
min-width: $MinWidth;
97+
}
98+
99+
&.mx_AppsDrawer_2apps .mx_AppTile {
100+
width: 50%;
101+
102+
&:nth-child(3) {
103+
flex-grow: 1;
104+
width: 0 !important;
105+
min-width: $MinWidth !important;
106+
}
107+
}
108+
&.mx_AppsDrawer_3apps .mx_AppTile {
109+
width: 33%;
110+
111+
&:nth-child(3) {
112+
flex-grow: 1;
113+
width: 0 !important;
114+
min-width: $MinWidth !important;
115+
}
116+
}
91117
}
92118

93119
.mx_AppsContainer_resizer {
@@ -122,31 +148,7 @@ $MiniAppTileHeight: 200px;
122148
}
123149
}
124150

125-
// TODO this should be 300px but that's too large
126-
$MinWidth: 240px;
127-
128-
.mx_AppsDrawer_2apps .mx_AppTile {
129-
width: 50%;
130-
131-
&:nth-child(3) {
132-
flex-grow: 1;
133-
width: 0 !important;
134-
min-width: $MinWidth !important;
135-
}
136-
}
137-
.mx_AppsDrawer_3apps .mx_AppTile {
138-
width: 33%;
139-
140-
&:nth-child(3) {
141-
flex-grow: 1;
142-
width: 0 !important;
143-
min-width: $MinWidth !important;
144-
}
145-
}
146-
147151
.mx_AppTile {
148-
width: 50%;
149-
min-width: $MinWidth;
150152
border: $container-border-width solid $widget-menu-bar-bg-color;
151153
display: flex;
152154
flex-direction: column;

0 commit comments

Comments
 (0)