优化消息里的读/写工具代码样式

This commit is contained in:
xintaofei
2026-03-28 14:30:12 +08:00
parent 8bd19738d0
commit d5471d2ceb
11 changed files with 62 additions and 33 deletions

View File

@@ -517,7 +517,7 @@ export function UnifiedDiffPreview({
{files.map((file) => (
<section
key={file.key}
className="flex max-h-[480px] flex-col rounded-lg border border-border bg-background"
className="flex max-h-[420px] flex-col rounded-lg border border-border bg-background"
>
<header className="flex shrink-0 items-center gap-2 border-b border-border bg-muted/40 px-3 py-2 text-[11px]">
<span className="shrink-0 rounded border border-border bg-background px-1.5 py-0.5 text-[10px] text-muted-foreground">

View File

@@ -1321,7 +1321,7 @@ function FileToolInput({
}, [isRead, output, content, newSource])
return (
<section className="flex max-h-[480px] flex-col rounded-lg border border-border bg-background">
<section className="flex max-h-[420px] flex-col rounded-lg border border-border bg-background">
<header className="flex shrink-0 items-center gap-2 border-b border-border bg-muted/40 px-3 py-2 text-[11px]">
<span className="shrink-0 rounded border border-border bg-background px-1.5 py-0.5 text-[10px] text-muted-foreground">
{isRead ? "READ" : "WRITE"}