Skip to content

The open alternative to Salesforce, designed for AI.

fix: DatePicker cut in DropDownMenu (#1437)

Jérémy M4889a697513b
diff --git a/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx b/front/src/modules/ui/dropdown/components/StyledDropdownMenu.tsx
index 9dd444de30b..f9c0b280e85 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')};
`;