Skip to content

Commit f697440

Browse files
author
Luke Barnard
committed
CSS for Your Communities scrollbar
and also attempt to fix GroupTile flex weirdness.
1 parent 69a82f7 commit f697440

1 file changed

Lines changed: 29 additions & 6 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss‎

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ limitations under the License.
1818
max-width: 960px;
1919
margin-left: auto;
2020
margin-right: auto;
21+
22+
display: flex;
23+
flex-direction: column;
2124
}
2225

2326
.mx_MyGroups .mx_RoomHeader_simpleHeader {
@@ -61,10 +64,21 @@ limitations under the License.
6164
/* Until the button is wired up */
6265
.mx_MyGroups_joinBox {
6366
visibility: hidden;
67+
height: 0px;
68+
margin: 0px;
6469
}
6570

6671
.mx_MyGroups_content {
6772
margin-left: 2px;
73+
74+
flex: 1 0 0;
75+
76+
display: flex;
77+
flex-direction: column;
78+
}
79+
80+
.mx_MyGroups_content h3 {
81+
margin-bottom: 10px;
6882
}
6983

7084
.mx_MyGroups_placeholder {
@@ -75,19 +89,22 @@ limitations under the License.
7589
text-align: center;
7690
}
7791

78-
.mx_MyGroups_joinedGroups {
92+
.mx_MyGroups_joinedGroups .gm-scroll-view {
93+
border-top: 1px solid $primary-hairline-color;
94+
overflow-x: hidden;
95+
7996
display: flex;
8097
flex-direction: row;
8198
flex-flow: wrap;
82-
justify-content: space-around;
99+
align-content: flex-start;
83100
}
84101

85-
.mx_MyGroups_joinedGroups .mx_GroupTile {
102+
.mx_MyGroups_joinedGroups .gm-scroll-view .mx_GroupTile {
86103
min-width: 300px;
87-
flex: 1 0 25%;
104+
max-width: 33%;
105+
flex: 1 0 300px;
88106
height: 75px;
89-
margin-bottom: 15px;
90-
margin-right: 10px;
107+
margin: 10px 0px;
91108
display: flex;
92109
align-items: flex-start;
93110
cursor: pointer;
@@ -100,6 +117,12 @@ limitations under the License.
100117
justify-content: center;
101118
}
102119

120+
.mx_GroupTile_profile h3.mx_GroupTile_name,
121+
.mx_GroupTile_profile .mx_GroupTile_groupId,
122+
.mx_GroupTile_profile .mx_GroupTile_desc {
123+
padding-right: 10px;
124+
}
125+
103126
.mx_GroupTile_profile h3.mx_GroupTile_name {
104127
margin: 0px;
105128
font-size: 15px;

0 commit comments

Comments
 (0)