Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-notification-dot-alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

Fix notification dot badge appearing off-center on sidebar avatars
8 changes: 4 additions & 4 deletions src/app/components/sidebar/Sidebar.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export const SidebarItemBadge = recipe({
left: toRem(-6),
},
false: {
top: toRem(-2),
left: toRem(-2),
top: toRem(-4),
left: toRem(-4),
},
},
},
Expand Down Expand Up @@ -167,9 +167,9 @@ export const SidebarItemBadge = recipe({
style: {
selectors: {
'div:has(> button[data-id]) &': {
top: toRem(2),
top: toRem(0),
left: 'auto',
right: toRem(2),
right: toRem(0),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/client/sidebar/DirectDMsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function DMItem({ room, selected }: DMItemProps) {
<SidebarItemBadge
hasCount={unread.total > 0}
style={{
left: unread.total > 0 ? toRem(-6) : toRem(-2),
left: unread.total > 0 ? toRem(-6) : toRem(-4),
right: 'auto',
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/client/sidebar/DirectTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function DirectTab() {
<SidebarItemBadge
hasCount={directUnread.total > 0}
style={{
left: directUnread.total > 0 ? toRem(-6) : toRem(-2),
left: directUnread.total > 0 ? toRem(-6) : toRem(-4),
right: 'auto',
}}
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/client/sidebar/HomeTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function HomeTab() {
<SidebarItemBadge
hasCount={homeUnread.total > 0}
style={{
left: homeUnread.total > 0 ? toRem(-6) : toRem(-2),
left: homeUnread.total > 0 ? toRem(-6) : toRem(-4),
right: 'auto',
}}
>
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/client/sidebar/SpaceTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ function SpaceTab({
<SidebarItemBadge
hasCount={unread.total > 0}
style={{
left: unread.total > 0 ? toRem(-6) : toRem(-2),
left: unread.total > 0 ? toRem(-6) : toRem(-4),
right: 'auto',
}}
>
Expand Down Expand Up @@ -609,7 +609,7 @@ function ClosedSpaceFolder({
<SidebarItemBadge
hasCount={unread.total > 0}
style={{
left: unread.total > 0 ? toRem(-6) : toRem(-2),
left: unread.total > 0 ? toRem(-6) : toRem(-4),
right: 'auto',
}}
>
Expand Down
Loading