Merge branch 'gzy' into 'master-dev'

fix: iframe底部选择智能体

See merge request knowledge-base-bj/deerflow-server!164
This commit is contained in:
g zy committed 2026-06-29 09:36:11 +00:00
commit 8947223255
1 file changed
+6 -2
@@ -93,9 +93,10 @@ export function AgentSelector({
return ( return (
<> <>
<Dialog open={open} onOpenChange={setOpen}> <Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
{iconMode ? ( {iconMode ? (
<Tooltip content={iconTooltipLabel}> <Tooltip content={iconTooltipLabel}>
<div>
<DialogTrigger asChild>
<Button <Button
type="button" type="button"
variant="ghost" variant="ghost"
@@ -128,8 +129,11 @@ export function AgentSelector({
</span> </span>
)} )}
</Button> </Button>
</DialogTrigger>
</div>
</Tooltip> </Tooltip>
) : ( ) : (
<DialogTrigger asChild>
<PromptInputButton <PromptInputButton
type="button" type="button"
disabled={disabled} disabled={disabled}
@@ -167,8 +171,8 @@ export function AgentSelector({
</span> </span>
)} )}
</PromptInputButton> </PromptInputButton>
)}
</DialogTrigger> </DialogTrigger>
)}
<DialogContent className="overflow-hidden p-0 sm:max-w-md"> <DialogContent className="overflow-hidden p-0 sm:max-w-md">
<DialogTitle className="sr-only">选择 Agent</DialogTitle> <DialogTitle className="sr-only">选择 Agent</DialogTitle>
<Command className="**:data-[slot=command-input-wrapper]:h-auto"> <Command className="**:data-[slot=command-input-wrapper]:h-auto">