mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Improve LoginArea sizing and space
This commit is contained in:
parent
738b512d9c
commit
139e6696db
@ -24,7 +24,7 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) {
|
|||||||
return (
|
return (
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<button className='flex items-center gap-3 p-3 rounded-full hover:bg-accent transition-all w-full text-foreground max-w-60'>
|
<button className='flex items-center gap-3 p-3 rounded-full hover:bg-accent transition-all w-full text-foreground'>
|
||||||
<Avatar className='w-10 h-10'>
|
<Avatar className='w-10 h-10'>
|
||||||
<AvatarImage src={currentUser.metadata.picture} alt={currentUser.metadata.name} />
|
<AvatarImage src={currentUser.metadata.picture} alt={currentUser.metadata.name} />
|
||||||
<AvatarFallback>{currentUser.metadata.name?.charAt(0) || <UserIcon />}</AvatarFallback>
|
<AvatarFallback>{currentUser.metadata.name?.charAt(0) || <UserIcon />}</AvatarFallback>
|
||||||
|
@ -20,7 +20,7 @@ export function LoginArea() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="flex items-center justify-center max-w-60">
|
||||||
{currentUser ? (
|
{currentUser ? (
|
||||||
<AccountSwitcher onAddAccountClick={() => setLoginDialogOpen(true)} />
|
<AccountSwitcher onAddAccountClick={() => setLoginDialogOpen(true)} />
|
||||||
) : (
|
) : (
|
||||||
@ -44,6 +44,6 @@ export function LoginArea() {
|
|||||||
isOpen={signupDialogOpen}
|
isOpen={signupDialogOpen}
|
||||||
onClose={() => setSignupDialogOpen(false)}
|
onClose={() => setSignupDialogOpen(false)}
|
||||||
/>
|
/>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user