Fix: Inline Phone Field Menu (#4383)
* #4343 fix: phone menu display on page * Add the possibility to send width as % --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -120,6 +120,7 @@ export const CountryPickerDropdownButton = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
dropdownMenuWidth={'100%'}
|
||||||
dropdownId="country-picker-dropdown-id"
|
dropdownId="country-picker-dropdown-id"
|
||||||
dropdownHotkeyScope={{ scope: CountryPickerHotkeyScope.CountryPicker }}
|
dropdownHotkeyScope={{ scope: CountryPickerHotkeyScope.CountryPicker }}
|
||||||
clickableComponent={
|
clickableComponent={
|
||||||
|
|||||||
@ -33,7 +33,7 @@ type DropdownProps = {
|
|||||||
dropdownHotkeyScope: HotkeyScope;
|
dropdownHotkeyScope: HotkeyScope;
|
||||||
dropdownId: string;
|
dropdownId: string;
|
||||||
dropdownPlacement?: Placement;
|
dropdownPlacement?: Placement;
|
||||||
dropdownMenuWidth?: `${string}px` | 'auto' | number;
|
dropdownMenuWidth?: `${string}px` | `${number}%` | 'auto' | number;
|
||||||
dropdownOffset?: { x?: number; y?: number };
|
dropdownOffset?: { x?: number; y?: number };
|
||||||
onClickOutside?: () => void;
|
onClickOutside?: () => void;
|
||||||
onClose?: () => void;
|
onClose?: () => void;
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import styled from '@emotion/styled';
|
|||||||
|
|
||||||
const StyledDropdownMenu = styled.div<{
|
const StyledDropdownMenu = styled.div<{
|
||||||
disableBlur?: boolean;
|
disableBlur?: boolean;
|
||||||
width?: `${string}px` | 'auto' | number;
|
width?: `${string}px` | `${number}%` | 'auto' | number;
|
||||||
}>`
|
}>`
|
||||||
backdrop-filter: ${({ disableBlur }) => (disableBlur ? 'none' : 'blur(8px)')};
|
backdrop-filter: ${({ disableBlur }) => (disableBlur ? 'none' : 'blur(8px)')};
|
||||||
background: ${({ theme }) => theme.background.transparent.secondary};
|
background: ${({ theme }) => theme.background.transparent.secondary};
|
||||||
|
|||||||
Reference in New Issue
Block a user