Skip to content

Commit b26f12a

Browse files
committed
match width from trigger
1 parent fe5bbe8 commit b26f12a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ButtonDropdown.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ const ButtonDropdown = ({ list, className }: ButtonDropdownProps) => {
6161
<span className="flex-1 text-center">{selectedItem}</span>
6262
</Button>
6363
</DropdownMenuTrigger>
64-
<DropdownMenuContent className="w-full" sideOffset={10}>
64+
<DropdownMenuContent
65+
className="w-[var(--radix-dropdown-menu-trigger-width)]"
66+
sideOffset={8}
67+
>
6568
{list.items.map((item, idx) => {
6669
const { text, href } = item
6770

0 commit comments

Comments
 (0)