remove Portal prop

This commit is contained in:
Jonathan Summers-Muir committed 2025-05-15 18:43:57 +08:00
1 parent f4353e7097
commit 2bd9f6f044
5 files changed
+4 -10

No files matched your search

@@ -221,7 +221,7 @@ const TableList = ({
icon={<Filter />}
/>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_ className="p-0 w-56" side="bottom" align="center" portal={true}>
<PopoverContent_Shadcn_ className="p-0 w-56" side="bottom" align="center">
<div className="px-3 pt-3 pb-2 flex flex-col gap-y-2">
<p className="text-xs">Show entity types</p>
<div className="flex flex-col">
@@ -218,12 +218,7 @@ export const LogsDatePicker = ({ onSubmit, helpers, value }: PropsWithChildren<P
: `${dayjs(value.from).format('DD MMM, HH:mm')} - ${dayjs(value.to || new Date()).format('DD MMM, HH:mm')}`}
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
className="flex w-full p-0"
side="bottom"
align="center"
portal={true}
>
<PopoverContent_Shadcn_ className="flex w-full p-0" side="bottom" align="center">
<RadioGroup
onValueChange={handleHelperChange}
value={value.isHelper ? value.text : ''}
@@ -69,7 +69,7 @@ const LogsFilterPopover = ({
<span>{options.label}</span>
</Button>
</PopoverTrigger>
<PopoverContent align={align} className="p-0 w-60" portal={true}>
<PopoverContent align={align} className="p-0 w-60">
<form
onSubmit={(e) => {
e.preventDefault()
+1 -1
View File
@@ -83,7 +83,7 @@ export const FilterPopover = <T extends Record<string, any>>({
</div>
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_ className={cn('p-0 w-44', className)} align="start" portal={true}>
<PopoverContent_Shadcn_ className={cn('p-0 w-44', className)} align="start">
<div className="border-b border-overlay bg-surface-200 rounded-t pb-1 px-3">
<span className="text-xs text-foreground-light">
{title ?? `Select ${name.toLowerCase()}`}
@@ -126,7 +126,6 @@ const SchemaSelector = ({
className="p-0 min-w-[200px] pointer-events-auto"
side="bottom"
align="start"
portal={true}
sameWidthAsTrigger
>
<Command_Shadcn_>