fix(createButton): add scrolling to empty webhook dropdown (#20191)

Added a scroll-bar class and set a max height on DropdownMenuContent to ensure large dropdowns are scrollable, improving the user experience by making all items accessible without expanding beyond the viewport.
This commit is contained in:
Abdullah Arif
2025-03-19 09:54:09 +05:30
committed by GitHub
parent aa4276be5b
commit 24c993a3d2
@@ -107,7 +107,7 @@ export function CreateButton(props: CreateBtnProps) {
{buttonText ? buttonText : t("new")}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent sideOffset={14} align="end">
<DropdownMenuContent sideOffset={14} align="end" className="scroll-bar max-h-60 overflow-y-auto">
<DropdownMenuLabel>
<div className="w-48 text-left text-xs">{subtitle}</div>
</DropdownMenuLabel>