Skip to content

Commit

Permalink
Unintended Scrollbars when Viewing User Panel #262
Browse files Browse the repository at this point in the history
Ark menu API is quite confusing but I did discover it uses a library called floating-ui which is documented.
  • Loading branch information
Southclaws committed Oct 29, 2024
1 parent 4efa55e commit 9c957bb
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ export function AccountMenu({ account }: Props) {
const isAdmin = hasPermission(account, "ADMINISTRATOR");

return (
<Menu.Root>
<Menu.Root
positioning={{
fitViewport: true,
slide: true,
placement: "bottom-end",
shift: 24,
}}
>
<Menu.Trigger cursor="pointer">
<MemberAvatar profile={account} size="md" />
</Menu.Trigger>
Expand Down

0 comments on commit 9c957bb

Please sign in to comment.