Skip to content

Commit

Permalink
fix: make dropdown showcase align right
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyend-nam committed Dec 15, 2023
1 parent 89c329d commit 9eed0e8
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions components/pages/home/RichComponentsView/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,20 @@ export const DropdownShowcase = () => {

return (
<DropdownMenu open={isOpened} onOpenChange={() => setIsOpened(!isOpened)}>
<DropdownMenuTrigger asChild>
<ProfileBadge
avatar="/img/user-avatar.png"
name="Kathryn Murphy"
platform=""
className="h-max"
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="max-h-[645px] overflow-y-auto">
<div className="w-[240px] h-max max-w-full flex justify-end">
<DropdownMenuTrigger asChild>
<ProfileBadge
avatar="/img/user-avatar.png"
name="Kathryn Murphy"
platform=""
className="h-max"
/>
</DropdownMenuTrigger>
</div>
<DropdownMenuContent
className="max-h-[645px] overflow-y-auto"
align="end"
>
<DropdownMenuLabel
leftIcon={<UserSolid className="!text-neutral-800" />}
>
Expand Down

0 comments on commit 9eed0e8

Please sign in to comment.