Skip to content

Commit

Permalink
Context menu scrolls on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
matitalatina committed Jan 15, 2025
1 parent 43b3181 commit bdcc69d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@
aria-label={ariaLabel}
aria-labelledby={ariaLabelledBy}
bind:this={menuElement}
class:max-h-[100vh]={isVisible}
class:max-h-0={!isVisible}
class="flex flex-col transition-all duration-[250ms] ease-in-out outline-none"
class="{isVisible ? 'max-h-screen max-h-svh' : 'max-h-0'} flex flex-col transition-all duration-[250ms] ease-in-out outline-none overflow-auto"
role="menu"
tabindex="-1"
>
Expand Down

0 comments on commit bdcc69d

Please sign in to comment.