From 54794b519737a6706c57a3b9d7981cef87d531e6 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 8 Jul 2024 16:22:46 +0200 Subject: [PATCH] Fix z-index issue on dropdown (#6160) Recently, we've forced all dropdown menu to be displayed in portal. This loses the z-index hieararchy structure and forces us to specify a higher z-index in order for dropdown menus to be displayed on top --- .../src/modules/ui/layout/dropdown/components/DropdownMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx index 5689b9391..5ac402f98 100644 --- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx +++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx @@ -24,7 +24,7 @@ const StyledDropdownMenu = styled.div<{ display: flex; flex-direction: column; - z-index: 1; + z-index: 30; width: ${({ width = 160 }) => typeof width === 'number' ? `${width}px` : width}; `;