fix(webui): simplify prompt history rows

This commit is contained in:
Xubin Ren
2026-06-06 16:10:08 +08:00
parent d3ef583c4a
commit eb20cf9141
10 changed files with 15 additions and 28 deletions
@@ -136,18 +136,14 @@ function PromptNavigatorRow({
aria-label={t("thread.promptNavigator.jumpTo", { label: prompt.label })}
onClick={() => onJump(prompt.id)}
>
<div className="flex items-center gap-2 text-[11px] text-muted-foreground">
<span>{t("thread.promptNavigator.promptNumber", { number: prompt.index + 1 })}</span>
{timestamp ? (
<>
<span aria-hidden>·</span>
<span>{timestamp}</span>
</>
) : null}
</div>
<div className="mt-1 max-h-20 overflow-hidden whitespace-pre-wrap break-words text-sm leading-5 text-foreground">
<div className="max-h-20 overflow-hidden whitespace-pre-wrap break-words text-sm leading-5 text-foreground">
{prompt.preview}
</div>
{timestamp ? (
<div className="mt-1 text-[10px] leading-4 text-muted-foreground/75">
{timestamp}
</div>
) : null}
</button>
);
}
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Search prompts",
"noResults": "No matching prompts.",
"jumpTo": "Jump to prompt: {{label}}",
"promptNumber": "Prompt {{number}}"
"jumpTo": "Jump to prompt: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Buscar prompts",
"noResults": "No hay prompts coincidentes.",
"jumpTo": "Ir al prompt: {{label}}",
"promptNumber": "Prompt {{number}}"
"jumpTo": "Ir al prompt: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Rechercher des prompts",
"noResults": "Aucun prompt correspondant.",
"jumpTo": "Aller au prompt : {{label}}",
"promptNumber": "Prompt {{number}}"
"jumpTo": "Aller au prompt : {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "Prompt",
"search": "Cari prompt",
"noResults": "Tidak ada prompt yang cocok.",
"jumpTo": "Lompat ke prompt: {{label}}",
"promptNumber": "Prompt {{number}}"
"jumpTo": "Lompat ke prompt: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "プロンプト",
"search": "プロンプトを検索",
"noResults": "一致するプロンプトがありません。",
"jumpTo": "プロンプトへ移動: {{label}}",
"promptNumber": "プロンプト {{number}}"
"jumpTo": "プロンプトへ移動: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "프롬프트",
"search": "프롬프트 검색",
"noResults": "일치하는 프롬프트가 없습니다.",
"jumpTo": "프롬프트로 이동: {{label}}",
"promptNumber": "프롬프트 {{number}}"
"jumpTo": "프롬프트로 이동: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "Prompt",
"search": "Tìm prompt",
"noResults": "Không có prompt phù hợp.",
"jumpTo": "Nhảy tới prompt: {{label}}",
"promptNumber": "Prompt {{number}}"
"jumpTo": "Nhảy tới prompt: {{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "输入列表",
"search": "搜索输入",
"noResults": "没有匹配的输入。",
"jumpTo": "跳转到输入:{{label}}",
"promptNumber": "第 {{number}} 条"
"jumpTo": "跳转到输入:{{label}}"
}
},
"message": {
+1 -2
View File
@@ -781,8 +781,7 @@
"title": "輸入列表",
"search": "搜尋輸入",
"noResults": "沒有符合的輸入。",
"jumpTo": "跳到輸入:{{label}}",
"promptNumber": "第 {{number}} 則"
"jumpTo": "跳到輸入:{{label}}"
}
},
"message": {