diff --git a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx index fc58723ea..22729baee 100644 --- a/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx +++ b/packages/twenty-front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx @@ -18,6 +18,7 @@ import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; import { DropdownMenuSearchInput } from '@/ui/layout/dropdown/components/DropdownMenuSearchInput'; import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator'; +import { OverlayContainer } from '@/ui/layout/overlay/components/OverlayContainer'; import { useListenClickOutside } from '@/ui/utilities/pointer-event/hooks/useListenClickOutside'; import { useUpdateEffect } from '~/hooks/useUpdateEffect'; @@ -25,13 +26,6 @@ const StyledFloatingDropdown = styled.div` z-index: ${({ theme }) => theme.lastLayerZIndex}; `; -const StyledDropdownMenu = styled(DropdownMenu)` - background-color: ${({ theme }) => theme.background.primary}; - border: 1px solid ${({ theme }) => theme.border.color.light}; - border-radius: ${({ theme }) => theme.border.radius.sm}; - box-shadow: ${({ theme }) => theme.boxShadow.light}; -`; - interface MatchColumnSelectProps { onChange: (value: ReadonlyDeep | null) => void; value?: ReadonlyDeep; @@ -128,48 +122,50 @@ export const MatchColumnSelect = ({ {isOpen && createPortal( - - - - - {options?.map((option) => ( - - handleChange(option)} - disabled={ - option.disabled && value?.value !== option.value - } - LeftIcon={option?.icon} - text={option.label} - /> - {option.disabled && - value?.value !== option.value && - createPortal( - , - document.body, - )} - - ))} - {options?.length === 0 && ( - - )} - - + + + + + + {options?.map((option) => ( + + handleChange(option)} + disabled={ + option.disabled && value?.value !== option.value + } + LeftIcon={option?.icon} + text={option.label} + /> + {option.disabled && + value?.value !== option.value && + createPortal( + , + document.body, + )} + + ))} + {options?.length === 0 && ( + + )} + + + , document.body, )}