@ -160,9 +160,9 @@ export const AutocompleteInput = ({
|
|||||||
<Popover
|
<Popover
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
initialFocusRef={inputRef}
|
initialFocusRef={inputRef}
|
||||||
matchWidth
|
|
||||||
offset={[0, 1]}
|
offset={[0, 1]}
|
||||||
isLazy
|
isLazy
|
||||||
|
placement="bottom-start"
|
||||||
>
|
>
|
||||||
<PopoverAnchor>
|
<PopoverAnchor>
|
||||||
<Input
|
<Input
|
||||||
@ -181,6 +181,7 @@ export const AutocompleteInput = ({
|
|||||||
<Portal containerRef={parentModalRef}>
|
<Portal containerRef={parentModalRef}>
|
||||||
<PopoverContent
|
<PopoverContent
|
||||||
maxH="35vh"
|
maxH="35vh"
|
||||||
|
maxW="35vw"
|
||||||
overflowY="auto"
|
overflowY="auto"
|
||||||
role="menu"
|
role="menu"
|
||||||
w="inherit"
|
w="inherit"
|
||||||
|
@ -33,7 +33,6 @@ type Item =
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Props<T extends Item> = {
|
type Props<T extends Item> = {
|
||||||
isPopoverMatchingInputWidth?: boolean
|
|
||||||
selectedItem?: string
|
selectedItem?: string
|
||||||
items: readonly T[] | undefined
|
items: readonly T[] | undefined
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
@ -41,7 +40,6 @@ type Props<T extends Item> = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const Select = <T extends Item>({
|
export const Select = <T extends Item>({
|
||||||
isPopoverMatchingInputWidth = true,
|
|
||||||
selectedItem,
|
selectedItem,
|
||||||
placeholder,
|
placeholder,
|
||||||
items,
|
items,
|
||||||
@ -150,7 +148,6 @@ export const Select = <T extends Item>({
|
|||||||
<Popover
|
<Popover
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
initialFocusRef={inputRef}
|
initialFocusRef={inputRef}
|
||||||
matchWidth={isPopoverMatchingInputWidth}
|
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
offset={[0, 1]}
|
offset={[0, 1]}
|
||||||
isLazy
|
isLazy
|
||||||
@ -215,6 +212,7 @@ export const Select = <T extends Item>({
|
|||||||
<Portal containerRef={parentModalRef}>
|
<Portal containerRef={parentModalRef}>
|
||||||
<PopoverContent
|
<PopoverContent
|
||||||
maxH="35vh"
|
maxH="35vh"
|
||||||
|
maxW="35vw"
|
||||||
overflowY="auto"
|
overflowY="auto"
|
||||||
role="menu"
|
role="menu"
|
||||||
w="inherit"
|
w="inherit"
|
||||||
|
@ -215,7 +215,7 @@ export const VariableSearchInput = ({
|
|||||||
initialFocusRef={inputRef}
|
initialFocusRef={inputRef}
|
||||||
isLazy
|
isLazy
|
||||||
offset={[0, 2]}
|
offset={[0, 2]}
|
||||||
placement="auto-start"
|
placement="bottom-start"
|
||||||
>
|
>
|
||||||
<PopoverAnchor>
|
<PopoverAnchor>
|
||||||
<Input
|
<Input
|
||||||
@ -233,6 +233,7 @@ export const VariableSearchInput = ({
|
|||||||
<Portal containerRef={parentModalRef}>
|
<Portal containerRef={parentModalRef}>
|
||||||
<PopoverContent
|
<PopoverContent
|
||||||
maxH="35vh"
|
maxH="35vh"
|
||||||
|
maxW="35vw"
|
||||||
overflowY="auto"
|
overflowY="auto"
|
||||||
role="menu"
|
role="menu"
|
||||||
w="inherit"
|
w="inherit"
|
||||||
|
@ -81,7 +81,7 @@ export const CustomDomainsDropdown = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Menu isLazy placement="bottom-start" matchWidth>
|
<Menu isLazy placement="bottom-start">
|
||||||
{workspace?.id && (
|
{workspace?.id && (
|
||||||
<CreateCustomDomainModal
|
<CreateCustomDomainModal
|
||||||
workspaceId={workspace.id}
|
workspaceId={workspace.id}
|
||||||
|
@ -89,7 +89,7 @@ const WorkspaceRoleMenuButton = ({
|
|||||||
onChange: (role: WorkspaceRole) => void
|
onChange: (role: WorkspaceRole) => void
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Menu placement="bottom-end" isLazy matchWidth>
|
<Menu placement="bottom" isLazy matchWidth>
|
||||||
<MenuButton
|
<MenuButton
|
||||||
flexShrink={0}
|
flexShrink={0}
|
||||||
as={Button}
|
as={Button}
|
||||||
|
Reference in New Issue
Block a user