Skip to content

Commit

Permalink
style: Expand context sub menus evenly to the top and the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
miyanokomiya committed Sep 28, 2024
1 parent 6a19d04 commit 48bb0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const ContextItem: React.FC<ContextItemProps> = ({ item, dropdownKey, onClickIte
</ListButton>
</div>
{dropdownKey === item.key ? (
<div className="absolute left-full top-0 border bg-white w-max">
<div className="absolute left-full top-1/2 -translate-y-1/2 border bg-white w-max">
<ContextList items={item.children} onClickItem={onClickItem} />
</div>
) : undefined}
Expand Down

0 comments on commit 48bb0bc

Please sign in to comment.