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

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"}

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "يتم عرض نهاية المخرجات أثناء البث لتحسين الأداء.",
"result": "النتيجة",
"unknown": "غير معروف",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "تم اقتطاع الإدخال — قد يكون الفرق غير مكتمل.",
"replaceAll": "استبدال الكل",
"filesCount": "الملفات: {count}",
"update": "تحديث",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "Zur besseren Performance wird während des Streamings nur die Endausgabe angezeigt.",
"result": "Ergebnis",
"unknown": "unbekannt",
"inputTruncated": "Input was truncateddiff may be incomplete.",
"inputTruncated": "Eingabe wurde gekürztDiff ist möglicherweise unvollständig.",
"replaceAll": "ALLES ERSETZEN",
"filesCount": "Dateien: {count}",
"update": "aktualisieren",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "Mostrando la salida final durante el streaming para mejorar el rendimiento.",
"result": "Resultado",
"unknown": "desconocido",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "La entrada fue truncada — el diff puede estar incompleto.",
"replaceAll": "REEMPLAZAR TODO",
"filesCount": "Archivos: {count}",
"update": "actualizar",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "Affichage de la fin de la sortie pendant le streaming pour de meilleures performances.",
"result": "Résultat",
"unknown": "inconnu",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "L'entrée a été tronquée — le diff peut être incomplet.",
"replaceAll": "TOUT REMPLACER",
"filesCount": "Fichiers : {count}",
"update": "mettre à jour",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "パフォーマンスのため、ストリーミング中は末尾出力を表示しています。",
"result": "結果",
"unknown": "不明",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "入力が切り詰められました — diff が不完全な可能性があります。",
"replaceAll": "すべて置換",
"filesCount": "ファイル: {count}",
"update": "更新",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "성능을 위해 스트리밍 중에는 출력의 끝부분만 표시합니다.",
"result": "결과",
"unknown": "알 수 없음",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "입력이 잘렸습니다 — diff가 불완전할 수 있습니다.",
"replaceAll": "모두 바꾸기",
"filesCount": "파일: {count}",
"update": "업데이트",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "Mostrando a saída final durante o streaming para melhor desempenho.",
"result": "Resultado",
"unknown": "desconhecido",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "A entrada foi truncada — o diff pode estar incompleto.",
"replaceAll": "SUBSTITUIR TUDO",
"filesCount": "Arquivos: {count}",
"update": "atualizar",

View File

@@ -1485,7 +1485,7 @@
"showingTailOutput": "為確保效能,串流輸出時僅顯示尾端內容。",
"result": "結果",
"unknown": "未知",
"inputTruncated": "Input was truncated — diff may be incomplete.",
"inputTruncated": "輸入已截斷diff 可能不完整。",
"replaceAll": "全部替換",
"filesCount": "檔案:{count}",
"update": "更新",