From 8e55182d3e5200e3580f2d4715797b93f91c91f6 Mon Sep 17 00:00:00 2001 From: Shea Date: Wed, 24 Jun 2026 16:42:20 +0300 Subject: [PATCH] fix abandn Signed-off-by: Shea --- .changeset/fix-abandn.md | 5 ++ .../client/sidebar/AccountSwitcherTab.tsx | 78 +++++++++++-------- 2 files changed, 51 insertions(+), 32 deletions(-) create mode 100644 .changeset/fix-abandn.md diff --git a/.changeset/fix-abandn.md b/.changeset/fix-abandn.md new file mode 100644 index 000000000..099e68dd7 --- /dev/null +++ b/.changeset/fix-abandn.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix leaving modal looking outsized diff --git a/src/app/pages/client/sidebar/AccountSwitcherTab.tsx b/src/app/pages/client/sidebar/AccountSwitcherTab.tsx index 712b2af67..34abed02a 100644 --- a/src/app/pages/client/sidebar/AccountSwitcherTab.tsx +++ b/src/app/pages/client/sidebar/AccountSwitcherTab.tsx @@ -14,6 +14,9 @@ import { toRem, Chip, Spinner, + Overlay, + OverlayBackdrop, + OverlayCenter, } from 'folds'; import FocusTrap from 'focus-trap-react'; import { useAtom, useAtomValue, useSetAtom } from 'jotai'; @@ -37,7 +40,6 @@ import { useUserProfile } from '$hooks/useUserProfile'; import { useMediaAuthentication } from '$hooks/useMediaAuthentication'; import { useSessionProfiles } from '$hooks/useSessionProfiles'; import { useOpenSettings } from '$features/settings'; -import { Modal500 } from '$components/Modal500'; import { createLogger } from '$utils/debug'; import { useClientConfig } from '$hooks/useClientConfig'; import { UnreadBadge, UnreadBadgeCenter } from '$components/unread-badge'; @@ -338,41 +340,53 @@ export function AccountSwitcherTab({ isBottom }: { isBottom?: boolean }) { /> {confirmSignOutSession && ( - setConfirmSignOutSession(undefined)}> - -
}> + + document.body, + clickOutsideDeactivates: true, + onDeactivate: () => setConfirmSignOutSession(undefined), + escapeDeactivates: stopPropagation, }} - variant="Surface" - size="500" > - - Sign out - -
- - - Are you sure you want to sign out of {confirmSignOutSession.userId}? - - - - - - -
-
+ + Sign out + + + + + Are you sure you want to sign out of {confirmSignOutSession.userId}? + + + + + + + + + + )} );