shadcn-ui/ui

[feat]: Add `overflow-auto` and `max-h-screen` styles to popover

nirtamir2 opened this issue · 0 comments

Feature description

Sometimes when the screen height is too small, it's better to have PopoverContent with max-h-screen and overflow-auto so the UI will be usable. Notice: this can be handled inside PopoverContent child component in the userland, but I think it's better to have this safety feature here.

Affected component/components

Popover

Additional Context

Related to #478

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs