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

Commit

Permalink
Allow AppTiles to shrink as much as necessary (#8805)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored Jun 9, 2022
1 parent 3046094 commit 8e9f740
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions res/css/views/rooms/_AppsDrawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ limitations under the License.
*/

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

.mx_AppsDrawer {
margin: $container-gap-width;
Expand Down Expand Up @@ -88,6 +90,30 @@ $MiniAppTileHeight: 200px;
opacity: 0.8;
}
}

.mx_AppTile {
width: 50%;
min-width: $MinWidth;
}

&.mx_AppsDrawer_2apps .mx_AppTile {
width: 50%;

&:nth-child(3) {
flex-grow: 1;
width: 0 !important;
min-width: $MinWidth !important;
}
}
&.mx_AppsDrawer_3apps .mx_AppTile {
width: 33%;

&:nth-child(3) {
flex-grow: 1;
width: 0 !important;
min-width: $MinWidth !important;
}
}
}

.mx_AppsContainer_resizer {
Expand Down Expand Up @@ -122,31 +148,7 @@ $MiniAppTileHeight: 200px;
}
}

// TODO this should be 300px but that's too large
$MinWidth: 240px;

.mx_AppsDrawer_2apps .mx_AppTile {
width: 50%;

&:nth-child(3) {
flex-grow: 1;
width: 0 !important;
min-width: $MinWidth !important;
}
}
.mx_AppsDrawer_3apps .mx_AppTile {
width: 33%;

&:nth-child(3) {
flex-grow: 1;
width: 0 !important;
min-width: $MinWidth !important;
}
}

.mx_AppTile {
width: 50%;
min-width: $MinWidth;
border: $container-border-width solid $widget-menu-bar-bg-color;
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 8e9f740

Please sign in to comment.