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

Commit d2fc1c4

Browse files
committed
Improve style of notification badges on the space panel
1 parent 683aec1 commit d2fc1c4

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

res/css/structures/_SpacePanel.scss

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ $activeBorderColor: $secondary-fg-color;
237237

238238
.mx_SpacePanel_badgeContainer {
239239
position: absolute;
240-
height: 16px;
241240

242241
// Create a flexbox to make aligning dot badges easier
243242
display: flex;
@@ -249,23 +248,37 @@ $activeBorderColor: $secondary-fg-color;
249248

250249
.mx_NotificationBadge_dot {
251250
// make the smaller dot occupy the same width for centering
252-
margin-left: 7px;
253-
margin-right: 7px;
251+
margin: 0 7px;
254252
}
255253
}
256254

257255
&.collapsed {
258256
.mx_SpaceButton {
259257
.mx_SpacePanel_badgeContainer {
260-
right: -3px;
261-
top: -3px;
258+
right: 0;
259+
top: 0;
260+
261+
.mx_NotificationBadge {
262+
background-clip: padding-box;
263+
}
264+
265+
.mx_NotificationBadge_dot {
266+
margin: 1px -1px 0 0;
267+
border: 3px solid $groupFilterPanel-bg-color;
268+
}
269+
270+
.mx_NotificationBadge_2char,
271+
.mx_NotificationBadge_3char {
272+
margin: -5px -5px 0 0;
273+
border: 2px solid $groupFilterPanel-bg-color;
274+
}
262275
}
263276

264277
&.mx_SpaceButton_active .mx_SpacePanel_badgeContainer {
265278
// when we draw the selection border we move the relative bounds of our parent
266279
// so update our position within the bounds of the parent to maintain position overall
267-
right: -6px;
268-
top: -6px;
280+
right: -3px;
281+
top: -3px;
269282
}
270283
}
271284
}

0 commit comments

Comments
 (0)