Skip to content

Commit

Permalink
reduce shift
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jan 28, 2025
1 parent e3fc7c6 commit 896412f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/client/src/components/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ export function UserMenu({
return (
<DropdownMenu>
<DropdownMenu.Trigger asChild>
{children ?? (!isLoggedIn && loading && !isOffline) ?
{(children ?? (!isLoggedIn && loading && !isOffline)) ?
<Button size="small" color="ghost" className={className}>
<Icon name="refresh" className="animate-spin" />
<Icon name="gear" />
{/* match height with avatar */}
<Icon name="gear" className="h-25px" />
</Button>
: isLoggedIn ?
<Button size="small" color="ghost" className={className}>
Expand All @@ -65,14 +66,14 @@ export function UserMenu({
<PresencePeople />
</Suspense>
</ErrorBoundary>
<Icon name="gear" />
<Icon name="gear" className="h-25px" />
</Button>
: <Button size="small" color="ghost" className={className}>
<Icon
name="refreshDisabled"
className={isOffline ? 'color-attention' : ''}
/>
<Icon name="gear" />
<Icon name="gear" className="h-25px" />
</Button>
}
</DropdownMenu.Trigger>
Expand Down

0 comments on commit 896412f

Please sign in to comment.