File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
22import { useParams } from 'common'
33import { ExternalLink , Plug } from 'lucide-react'
44import { parseAsBoolean , useQueryState } from 'nuqs'
5- import { useState , useMemo } from 'react'
5+ import { useMemo , useState } from 'react'
66
77import { DatabaseConnectionString } from 'components/interfaces/Connect/DatabaseConnectionString'
88import { ButtonTooltip } from 'components/ui/ButtonTooltip'
99import Panel from 'components/ui/Panel'
10- import { getAPIKeys , useProjectSettingsV2Query } from 'data/config/project-settings-v2-query'
1110import { useAPIKeysQuery } from 'data/api-keys/api-keys-query'
11+ import { getAPIKeys , useProjectSettingsV2Query } from 'data/config/project-settings-v2-query'
1212import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
1313import { useSelectedProject } from 'hooks/misc/useSelectedProject'
1414import { PROJECT_STATUS } from 'lib/constants'
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export const DatabaseConnectionString = () => {
239239 </ SelectContent_Shadcn_ >
240240 </ Select_Shadcn_ >
241241 </ div >
242- < DatabaseSelector buttonProps = { { size : 'small' } } />
242+ < DatabaseSelector portal = { false } buttonProps = { { size : 'small' } } />
243243 </ div >
244244
245245 { isLoading && (
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ interface DatabaseSelectorProps {
3636 buttonProps ?: ButtonProps
3737 onSelectId ?: ( id : string ) => void // Optional callback
3838 onCreateReplicaClick ?: ( ) => void
39+ portal ?: boolean
3940}
4041
4142const DatabaseSelector = ( {
@@ -45,6 +46,7 @@ const DatabaseSelector = ({
4546 onSelectId = noop ,
4647 buttonProps,
4748 onCreateReplicaClick = noop ,
49+ portal = true ,
4850} : DatabaseSelectorProps ) => {
4951 const router = useRouter ( )
5052 const { ref : projectRef } = useParams ( )
@@ -110,7 +112,7 @@ const DatabaseSelector = ({
110112 </ Button >
111113 </ div >
112114 </ PopoverTrigger_Shadcn_ >
113- < PopoverContent_Shadcn_ className = "p-0 w-64" side = "bottom" align = "end" portal = { true } >
115+ < PopoverContent_Shadcn_ className = "p-0 w-64" side = "bottom" align = "end" portal = { portal } >
114116 < Command_Shadcn_ >
115117 < CommandList_Shadcn_ >
116118 { additionalOptions . length > 0 && (
You can’t perform that action at this time.
0 commit comments