Fix Radix portal (#961)

This commit is contained in:
Zero Liu 2024-12-23 16:17:49 -08:00 committed by GitHub
parent 48b34408b4
commit 7fc3cfa2d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ const ChatControls: React.FC<ChatControlsProps> = ({
<ChevronDown size={10} />
</DropdownMenu.Trigger>
<DropdownMenu.Portal>
<DropdownMenu.Portal container={activeDocument.body}>
<DropdownMenu.Content className="chain-select-content" align="end" sideOffset={5}>
<DropdownMenu.Item
onSelect={() => handleChainChange({ value: ChainType.LLM_CHAIN })}

View file

@ -452,7 +452,7 @@ const ChatInput = forwardRef<{ focus: () => void }, ChatInputProps>(
<ChevronUp size={10} />
</DropdownMenu.Trigger>
<DropdownMenu.Portal>
<DropdownMenu.Portal container={activeDocument.body}>
<DropdownMenu.Content className="model-select-content" align="start">
{settings.activeModels
.filter((model) => model.enabled)

View file

@ -15,7 +15,7 @@ export function TooltipActionButton({ onClick, Icon, children }: PropsWithChildr
{Icon}
</button>
</Tooltip.Trigger>
<Tooltip.Portal>
<Tooltip.Portal container={activeDocument.body}>
<Tooltip.Content sideOffset={5} className="tooltip-text">
{children}
</Tooltip.Content>