From 4889a697513becae39b9ef2f0742c6741a1d603b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Mon, 4 Sep 2023 17:42:46 +0200 Subject: [PATCH] fix: DatePicker cut in DropDownMenu (#1437) * fix: DatePicker cut in DropDownMenu * fix: better solution --- .../src/modules/ui/dropdown/components/StyledDropdownMenu.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx b/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx index 9dd444de30..f9c0b280e8 100644 --- a/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx +++ b/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx @@ -16,7 +16,9 @@ export const StyledDropdownMenu = styled.div<{ flex-direction: column; + min-width: 160px; + overflow: hidden; - width: ${({ width }) => (width && width > 160 ? width : 160)}px; + width: ${({ width }) => (width ? `${width}px` : 'auto')}; `;