Fix dropdown width (#11536)

Fix regressions due to dropdown refactoring
This commit is contained in:
Charles Bochet
2025-04-11 14:59:57 +02:00
committed by GitHub
parent fe98deef4e
commit 9da5cca82a
5 changed files with 7 additions and 13 deletions

View File

@ -152,10 +152,7 @@ export const Select = <Value extends SelectValue>({
<DropdownMenuSeparator />
)}
{!!filteredOptions.length && (
<DropdownMenuItemsContainer
hasMaxHeight
width={dropDownMenuWidth}
>
<DropdownMenuItemsContainer hasMaxHeight width={'auto'}>
{filteredOptions.map((option) => (
<MenuItemSelect
key={`${option.value}-${option.label}`}

View File

@ -6,7 +6,7 @@ import { isDefined } from 'twenty-shared/utils';
const StyledDropdownMenuItemsExternalContainer = styled.div<{
hasMaxHeight?: boolean;
width: number;
width: number | 'auto';
}>`
--padding: ${({ theme }) => theme.spacing(1)};
@ -52,7 +52,7 @@ export const DropdownMenuItemsContainer = ({
hasMaxHeight?: boolean;
className?: string;
scrollable?: boolean;
width?: number;
width?: number | 'auto';
}) => {
const id = useId();