Tighten assistant dialog headers
This commit is contained in:
@@ -53,7 +53,6 @@ import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
@@ -916,7 +915,6 @@ const ComposerAssistButtons: FC = () => {
|
||||
<SkillInsertDialog />
|
||||
<PromptInsertDialog
|
||||
title="常用工具"
|
||||
description="这里用于调试和明确意图,最终是否调用仍由 Agent 决策。"
|
||||
triggerIcon={<WrenchIcon className="size-4" />}
|
||||
triggerLabel=""
|
||||
items={TOOL_PROMPTS}
|
||||
@@ -954,13 +952,11 @@ const TOOL_PROMPTS = [
|
||||
|
||||
function PromptInsertDialog({
|
||||
title,
|
||||
description,
|
||||
triggerIcon,
|
||||
triggerLabel,
|
||||
items,
|
||||
}: {
|
||||
title: string;
|
||||
description: string;
|
||||
triggerIcon: ReactNode;
|
||||
triggerLabel: string;
|
||||
items: { title: string; description: string; prompt: string }[];
|
||||
@@ -986,7 +982,6 @@ function PromptInsertDialog({
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>{title}</DialogTitle>
|
||||
<DialogDescription>{description}</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="grid gap-2">
|
||||
{items.map((item) => (
|
||||
@@ -1061,9 +1056,6 @@ function SlashCommandDialog() {
|
||||
<DialogContent>
|
||||
<DialogHeader>
|
||||
<DialogTitle>快捷入口</DialogTitle>
|
||||
<DialogDescription>
|
||||
这里展示终端 `/` 命令中可在 WebUI 对话框执行的子集。
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
{status ? (
|
||||
<p className="text-muted-foreground text-sm">{status}</p>
|
||||
@@ -1261,9 +1253,6 @@ function SkillInsertDialog() {
|
||||
<DialogContent className="gap-3 p-5">
|
||||
<DialogHeader className="gap-1 pr-6">
|
||||
<DialogTitle>Skills</DialogTitle>
|
||||
<DialogDescription>
|
||||
勾选的 Skill 会进入模型可见列表;点击名称可插入显式调用。
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<div className="flex items-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user