Align dropdown to button width
Set account dropdown width to match trigger by using CSS variable for width in AccountMenu.tsx, ensuring the menu is as wide as the "Mitt konto" button. X-Lovable-Edit-ID: edt-448ad83f-d041-4eec-97e7-a9eb482c4905
This commit is contained in:
@@ -54,7 +54,7 @@ const AccountMenu = () => {
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
align="end"
|
||||
className="bg-background border border-border shadow-lg z-50 min-w-[160px] p-0"
|
||||
className="bg-background border border-border shadow-lg z-50 p-0 w-[var(--radix-dropdown-menu-trigger-width)]"
|
||||
>
|
||||
<button
|
||||
onClick={() => handleOpenAuth("signup")}
|
||||
|
||||
Reference in New Issue
Block a user