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 182c9d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
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 182c9d3

Please sign in to comment.