Skip to content

Commit 9483e42

Browse files
committed
switch from dots to per-room badges
1 parent e640f65 commit 9483e42

2 files changed

Lines changed: 22 additions & 49 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/rooms/RoomTile.css‎

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ limitations under the License.
1919
/* This fixes wrapping of long room names, but breaks drag & drop previews */
2020
/* display: table-row; */
2121
font-size: 13px;
22+
position: relative;
2223
}
2324

2425
.mx_RoomTile_avatar {
2526
display: table-cell;
2627
padding-right: 11px;
2728
padding-top: 6px;
2829
padding-bottom: 6px;
29-
padding-left: 20px;
30+
padding-left: 18px;
3031
width: 24px;
3132
height: 24px;
3233
position: relative;
@@ -57,58 +58,23 @@ limitations under the License.
5758
display: none;
5859
}
5960

60-
/*
61-
.mx_RoomTile_nameBadge {
62-
display: table;
63-
width: 100%;
64-
height: 50px;
65-
}
66-
67-
.mx_RoomTile_badgeCell {
68-
display: table-cell;
69-
vertical-align: middle;
70-
width: 26px;
71-
}
72-
73-
.mx_RoomTile_badge {
74-
background-color: #76cfa6;
75-
color: #fff;
76-
border-radius: 26px;
77-
font-weight: 400;
78-
font-size: 14px;
79-
line-height: 28px;
80-
width: 26px;
81-
height: 26px;
82-
text-align: center;
83-
}
84-
*/
85-
86-
/*
87-
.mx_RoomTile_badge {
88-
background-color: #ff0064;
89-
border: 3px solid #fff;
90-
border-radius: 16px;
91-
width: 9px;
92-
height: 9px;
93-
position: absolute;
94-
right: 9px;
95-
bottom: 3px;
96-
}
97-
*/
98-
9961
.mx_RoomTile_badge {
100-
background-color: #ff0064;
101-
width: 8px;
102-
height: 8px;
62+
min-width: 12px;
63+
height: 16px;
10364
position: absolute;
104-
left: 7px;
65+
right: 16px;
10566
top: 50%;
106-
margin-top: -4px;
107-
border-radius: 4px;
67+
margin-top: -8px;
68+
border-radius: 3px;
69+
color: #fff;
70+
font-weight: bold;
71+
font-size: 11px;
72+
text-align: center;
73+
padding: 0px 2px 0px 2px;
10874
}
10975

11076
.mx_RoomTile_unreadNotify .mx_RoomTile_badge {
111-
background-color: #454545;
77+
background-color: #76cfa6;
11278
}
11379

11480
.mx_RoomTile_highlight .mx_RoomTile_badge {
@@ -120,13 +86,20 @@ limitations under the License.
12086
font-weight: bold;
12187
}
12288

89+
.mx_RoomTile_unreadNotify .mx_RoomTile_name,
90+
.mx_RoomTile_highlight .mx_RoomTile_name {
91+
padding-right: 36px;
92+
}
93+
12394
.mx_RoomTile_selected .mx_RoomTile_name {
12495
padding-right: 23px;
12596
}
12697

98+
/*
12799
.mx_RoomTile_highlight .mx_RoomTile_name {
128100
color: #ff0064 ! important;
129101
}
102+
*/
130103

131104
.mx_RoomTile.mx_RoomTile_selected .mx_RoomTile_avatar {
132105
padding-right: 7px;

‎src/skins/vector/css/vector-web/structures/LeftPanel.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ limitations under the License.
5959
order: 3;
6060

6161
border-top: 1px solid rgba(0, 0, 0, 0.1);
62-
margin-left: 20px;
63-
margin-right: 20px;
62+
margin-left: 18px;
63+
margin-right: 18px;
6464
-webkit-flex: 0 0 60px;
6565
flex: 0 0 60px;
6666
}

0 commit comments

Comments
 (0)