From 57a2f8cc8191ef782b1ac906f12e30ea863cb67f Mon Sep 17 00:00:00 2001 From: chbndrhnns <7534547+chbndrhnns@users.noreply.github.com> Date: Thu, 20 Aug 2026 20:03:33 +0000 Subject: [PATCH] fix(dashboard): allow scrolling in dropdown select menu Outer portal container lacked flex layout while inner container used max-h-full, causing the child to expand to full content height without scrolling and getting clipped by parent overflow-hidden at maxHeight. Adding flex-col on the outer container and min-h-0 flex-1 on the inner container allows flexbox to properly constrain the scrollable list. --- .../deployments/components/ProjectFilter.tsx | 2 +- .../src/components/ui/CustomSelect.tsx | 4 +- .../ui/custom-select.render.test.tsx | 70 +++++++++++++++++++ 3 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 apps/dashboard/src/components/ui/custom-select.render.test.tsx diff --git a/apps/dashboard/src/app/(dashboard)/deployments/components/ProjectFilter.tsx b/apps/dashboard/src/app/(dashboard)/deployments/components/ProjectFilter.tsx index 6e38253c8..be7eb2e47 100644 --- a/apps/dashboard/src/app/(dashboard)/deployments/components/ProjectFilter.tsx +++ b/apps/dashboard/src/app/(dashboard)/deployments/components/ProjectFilter.tsx @@ -51,7 +51,7 @@ export const ProjectFilter: React.FC = ({ {isOpen && ( -
+
{/* All Projects Option */}