refactor: adjust layout and styling in AIAgentConfigWorkbench and ProjectDialog components

This commit is contained in:
mlogclub
2026-06-22 20:38:53 +08:00
parent b0fa5100d2
commit 9b76ef4bd0
2 changed files with 8 additions and 10 deletions
@@ -516,17 +516,15 @@ export function AIAgentConfigWorkbench({
return (
<div className="flex h-full min-h-0 flex-col overflow-hidden bg-background">
<div className="flex shrink-0 items-center justify-between gap-4 border-b px-5 py-3 pr-28">
<div className="flex min-w-0 items-center gap-3">
<div className="flex size-10 items-center justify-center rounded-md bg-muted text-muted-foreground">
<BotMessageSquareIcon className="size-5" />
<div className="flex shrink-0 items-center justify-between gap-4 border-b px-5 py-2 pr-28">
<div className="flex min-w-0 items-center gap-2.5">
<div className="flex size-8 items-center justify-center rounded-md bg-muted text-muted-foreground">
<BotMessageSquareIcon className="size-4" />
</div>
<div className="min-w-0">
<div className="flex min-w-0 items-center gap-2">
<h1 className="truncate text-base font-semibold">{agent?.name ?? "新建 AI Agent"}</h1>
<div className="mt-1 flex items-center gap-2 text-sm text-muted-foreground">
{agent?.statusName ? <Badge variant="secondary">{agent.statusName}</Badge> : null}
{agent?.workflowVersionId ? <Badge></Badge> : <Badge variant="outline">稿</Badge>}
</div>
{agent?.statusName ? <Badge variant="secondary">{agent.statusName}</Badge> : null}
{agent?.workflowVersionId ? <Badge></Badge> : <Badge variant="outline">稿</Badge>}
</div>
</div>
<div className="flex items-center gap-2">
+1 -1
View File
@@ -114,7 +114,7 @@ function ProjectDialog({
className={cn(
"flex max-h-[calc(100vh-2rem)] flex-col gap-0 overflow-hidden p-0",
fullscreen
? "top-5 left-5 h-[calc(100vh-40px)] max-h-[calc(100vh-40px)] w-[calc(100vw-40px)] max-w-[calc(100vw-40px)] translate-x-0 translate-y-0 rounded-xl sm:max-w-[calc(100vw-40px)]"
? "top-2 left-2 h-[calc(100vh-16px)] max-h-[calc(100vh-16px)] w-[calc(100vw-16px)] max-w-[calc(100vw-16px)] translate-x-0 translate-y-0 rounded-xl sm:max-w-[calc(100vw-16px)]"
: dialogSizeClassName[size],
contentClassName,
)}