diff --git a/packages/web/src/components/nav/desktop/AccountSwitcher/AccountListContent.tsx b/packages/web/src/components/nav/desktop/AccountSwitcher/AccountListContent.tsx index 47efdb029b2..33e3754989b 100644 --- a/packages/web/src/components/nav/desktop/AccountSwitcher/AccountListContent.tsx +++ b/packages/web/src/components/nav/desktop/AccountSwitcher/AccountListContent.tsx @@ -63,7 +63,10 @@ export const AccountListContent = ({ if (mainContentRef.current) { const { height } = mainContentRef.current.getBoundingClientRect() setContentHeight(height) + return } + // OAuth routes render outside WebPlayer main content, so fall back to viewport height. + setContentHeight(window.innerHeight) }, [mainContentRef]) const onUserSelected = useCallback(