Fixed dropdown menu field settings (#8374)

2 dropdown menu components were used. Using only one and using dropdown
props for passing width to its internal dropdown menu component.
This commit is contained in:
Lucas Bordeau
2024-11-08 17:11:37 +01:00
committed by GitHub
parent e8bf81de5b
commit 045f569d62

View File

@ -9,7 +9,6 @@ import {
} from 'twenty-ui';
import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu';
import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';
@ -57,8 +56,8 @@ export const SettingsObjectFieldActiveActionDropdown = ({
accent="tertiary"
/>
}
dropdownMenuWidth={160}
dropdownComponents={
<DropdownMenu width="160px">
<DropdownMenuItemsContainer>
<MenuItem
text={isCustomField ? 'Edit' : 'View'}
@ -80,7 +79,6 @@ export const SettingsObjectFieldActiveActionDropdown = ({
/>
)}
</DropdownMenuItemsContainer>
</DropdownMenu>
}
dropdownHotkeyScope={{
scope: dropdownId,