refactor(message): shrink agent card max height and localize running indicator with spinner
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
ChevronDownIcon,
|
||||
ChevronRightIcon,
|
||||
CompassIcon,
|
||||
Loader2,
|
||||
MapIcon,
|
||||
TerminalIcon,
|
||||
WrenchIcon,
|
||||
@@ -192,7 +193,7 @@ export const AgentToolCallPart = memo(function AgentToolCallPart({
|
||||
|
||||
{/* Collapsible body */}
|
||||
<CollapsibleContent>
|
||||
<div className="max-h-[32rem] overflow-y-auto space-y-3 px-4 pb-4">
|
||||
<div className="max-h-72 overflow-y-auto space-y-3 px-4 pb-4">
|
||||
{/* Model + duration summary */}
|
||||
{(model || durationSuffix) && (
|
||||
<div className="flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground">
|
||||
@@ -241,9 +242,12 @@ export const AgentToolCallPart = memo(function AgentToolCallPart({
|
||||
|
||||
{/* Running indicator */}
|
||||
{isRunning && !part.output && (
|
||||
<div className="flex items-center gap-2">
|
||||
<Loader2 className="size-3.5 animate-spin text-muted-foreground" />
|
||||
<Shimmer className="text-sm" duration={2}>
|
||||
Running...
|
||||
{t("agentRunning")}
|
||||
</Shimmer>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Error output */}
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "الاسم:",
|
||||
"agentPromptLabel": "المطالبة",
|
||||
"agentModelLabel": "النموذج",
|
||||
"agentRunning": "قيد التشغيل...",
|
||||
"agentStatsBash": "الأوامر",
|
||||
"agentStatsRead": "الملفات المقروءة",
|
||||
"agentStatsSearch": "عمليات البحث",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "Bezeichnung:",
|
||||
"agentPromptLabel": "Eingabe",
|
||||
"agentModelLabel": "Modell",
|
||||
"agentRunning": "Läuft...",
|
||||
"agentStatsBash": "Befehle",
|
||||
"agentStatsRead": "Dateien gelesen",
|
||||
"agentStatsSearch": "Suchen",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "Name:",
|
||||
"agentPromptLabel": "Prompt",
|
||||
"agentModelLabel": "Model",
|
||||
"agentRunning": "Running...",
|
||||
"agentStatsBash": "Commands",
|
||||
"agentStatsRead": "Files read",
|
||||
"agentStatsSearch": "Searches",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "Nombre:",
|
||||
"agentPromptLabel": "Instrucción",
|
||||
"agentModelLabel": "Modelo",
|
||||
"agentRunning": "Ejecutando...",
|
||||
"agentStatsBash": "Comandos",
|
||||
"agentStatsRead": "Archivos leídos",
|
||||
"agentStatsSearch": "Búsquedas",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "Nom :",
|
||||
"agentPromptLabel": "Instruction",
|
||||
"agentModelLabel": "Modèle",
|
||||
"agentRunning": "En cours...",
|
||||
"agentStatsBash": "Commandes",
|
||||
"agentStatsRead": "Fichiers lus",
|
||||
"agentStatsSearch": "Recherches",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "名前:",
|
||||
"agentPromptLabel": "プロンプト",
|
||||
"agentModelLabel": "モデル",
|
||||
"agentRunning": "実行中...",
|
||||
"agentStatsBash": "コマンド",
|
||||
"agentStatsRead": "ファイル読取",
|
||||
"agentStatsSearch": "検索",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "이름:",
|
||||
"agentPromptLabel": "프롬프트",
|
||||
"agentModelLabel": "모델",
|
||||
"agentRunning": "실행 중...",
|
||||
"agentStatsBash": "명령",
|
||||
"agentStatsRead": "파일 읽기",
|
||||
"agentStatsSearch": "검색",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "Nome:",
|
||||
"agentPromptLabel": "Instrução",
|
||||
"agentModelLabel": "Modelo",
|
||||
"agentRunning": "Em execução...",
|
||||
"agentStatsBash": "Comandos",
|
||||
"agentStatsRead": "Arquivos lidos",
|
||||
"agentStatsSearch": "Pesquisas",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "名称:",
|
||||
"agentPromptLabel": "提示词",
|
||||
"agentModelLabel": "模型",
|
||||
"agentRunning": "运行中...",
|
||||
"agentStatsBash": "命令",
|
||||
"agentStatsRead": "读取文件",
|
||||
"agentStatsSearch": "搜索",
|
||||
|
||||
@@ -1719,6 +1719,7 @@
|
||||
"nameLabel": "名稱:",
|
||||
"agentPromptLabel": "提示詞",
|
||||
"agentModelLabel": "模型",
|
||||
"agentRunning": "執行中...",
|
||||
"agentStatsBash": "命令",
|
||||
"agentStatsRead": "讀取檔案",
|
||||
"agentStatsSearch": "搜尋",
|
||||
|
||||
Reference in New Issue
Block a user