mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-15 20:01:35 +00:00
* fix(context-menu): make context menu scrollable if height is limited Context menu content now becomes scrollable when the browser window height is too small to display the full menu. This improves usability on smaller screens. Radix also supports the same behavior for other components. I will also submit PRs for the other components separately. Added the following properties to the Context Menu Content component: - `max-h-[--radix-context-menu-content-available-height]` - `overflow-y-auto` & `overflow-x-hidden` instead of `overflow-hidden` (existed before) * fix(v4): context menu --------- Co-authored-by: shadcn <m@shadcn.com>