mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
Fix Radix portal (#961)
This commit is contained in:
parent
48b34408b4
commit
7fc3cfa2d0
3 changed files with 3 additions and 3 deletions
|
|
@ -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 })}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue