Skip to content

Commit a0dfb35

Browse files
committed
fix: only adjust popup layer alignments for widgets
1 parent c424f44 commit a0dfb35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ui/src/blocks/notification-hub/notification-hub.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function NotificationHub(): JSX.Element {
4242
<span className="absolute right-[3px] top-[1px] rounded-full bg-red-900 p-1 ring-1 ring-white dark:ring-black" />
4343
)}
4444
</Menu.Button>
45-
<Menu.Items side="left" align="start">
45+
<Menu.Items {...(isWidget ? { side: 'left', align: 'start' } : {})}>
4646
<Heading as="h4" className="px-5 py-3 font-bold">
4747
Notifications
4848
</Heading>

packages/ui/src/blocks/user-menu/user-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function UserMenu(props: UserMenuProps): JSX.Element {
4040
username={username}
4141
/>
4242
</Menu.Button>
43-
<Menu.Items side="left" align="start">
43+
<Menu.Items {...(isWidget ? { side: 'left', align: 'start' } : {})}>
4444
{name && (
4545
<div className="mx-4 w-36 space-y-1 py-2">
4646
{plan && plan !== 'HOBBY' && (

0 commit comments

Comments
 (0)