Skip to content

Commit 9445433

Browse files
author
Luke Barnard
committed
CSS to improve MyGroups in general, and add placeholder
1 parent c6f75fb commit 9445433

2 files changed

Lines changed: 38 additions & 17 deletions

File tree

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

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,55 @@ limitations under the License.
2424
margin-left: 0px;
2525
}
2626

27-
.mx_MyGroups_joinCreateBox {
28-
display: table;
27+
.mx_MyGroups_header {
28+
/* Keep mid-point of create button aligned with icon in page header */
29+
margin-left: 2px;
30+
display: flex;
31+
flex-wrap: wrap;
32+
}
33+
34+
.mx_MyGroups_headerCard {
35+
flex: 1 0 50%;
2936
margin-bottom: 30px;
37+
min-width: 400px;
38+
display: flex;
39+
align-items: center;
3040
}
3141

32-
.mx_MyGroups_createBox, .mx_MyGroups_joinBox {
33-
display: table-cell;
34-
width: 40%;
42+
.mx_MyGroups_headerCard .mx_MyGroups_headerCard_button {
43+
margin-right: 13px;
44+
height: 50px;
3545
}
3646

37-
/* Until the button is wired up */
38-
.mx_MyGroups_joinBox {
39-
visibility: hidden;
47+
.mx_MyGroups_headerCard_button object {
48+
/* Otherwise the SVG object absorbs clicks and the button doesn't work */
49+
pointer-events: none;
4050
}
4151

42-
.mx_MyGroups_joinCreateHeader {
52+
.mx_MyGroups_headerCard_header {
4353
font-weight: bold;
4454
margin-bottom: 10px;
4555
}
4656

47-
.mx_MyGroups_joinCreateButton {
48-
float: left;
49-
margin: 10px;
57+
.mx_MyGroups_headerCard_content {
58+
padding-right: 15px;
5059
}
5160

52-
.mx_MyGroups_joinCreateButton object {
53-
/* Otherwise the SVG object absorbs clicks and the button doesn't work */
54-
pointer-events: none;
61+
/* Until the button is wired up */
62+
.mx_MyGroups_joinBox {
63+
visibility: hidden;
5564
}
5665

5766
.mx_MyGroups_content {
58-
clear: left;
67+
margin-left: 2px;
68+
}
69+
70+
.mx_MyGroups_placeholder {
71+
background-color: $group-my-groups-placeholder-bg;
72+
color: $group-my-groups-placeholder-fg;
73+
line-height: 400px;
74+
border-radius: 10px;
75+
text-align: center;
5976
}
6077

6178
.mx_MyGroups_joinedGroups {
@@ -66,7 +83,8 @@ limitations under the License.
6683
}
6784

6885
.mx_MyGroups_joinedGroups .mx_GroupTile {
69-
width: 300px;
86+
min-width: 300px;
87+
flex: 1 0 25%;
7088
height: 75px;
7189
margin-bottom: 15px;
7290
margin-right: 10px;

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ $warning-color: #ff0064;
2222
$mention-user-pill-bg-color: #ff0064;
2323
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
2424

25+
// groups
2526
$group-alert-color: #774f7e;
27+
$group-my-groups-placeholder-bg: #f7f7f7;
28+
$group-my-groups-placeholder-fg: #888;
2629

2730
$preview-bar-bg-color: #f7f7f7;
2831

0 commit comments

Comments
 (0)