From da18be330c51588fa9ae77c7a0c0d10cfa8bb1d2 Mon Sep 17 00:00:00 2001 From: qer Date: Sat, 13 Jun 2026 12:33:10 +0800 Subject: [PATCH] feat(web): rework the todo / background-task panels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four fixes folded together: - The ~/todo TAB was still collapsible, so opening it could hide everything. Collapse now applies only to the floating card; the tab is always expanded. - The floating background-task card had no collapse. Add a chevron toggle while keeping the header click as 'open the tasks tab'. - The card truncated to 4 rows and showed '+N' even with room. Raise the cap to 12 and let the list scroll (max-height) so it shows more before truncating. - Bump the floating stack width 260→300 and card font so the panels aren't so cramped. --- .../src/components/ConversationPane.vue | 4 +- apps/kimi-web/src/components/TasksCard.vue | 71 +++++++++++++++---- apps/kimi-web/src/components/TodoCard.vue | 20 ++++-- apps/kimi-web/src/i18n/locales/en/tasks.ts | 2 + apps/kimi-web/src/i18n/locales/zh/tasks.ts | 2 + 5 files changed, 79 insertions(+), 20 deletions(-) diff --git a/apps/kimi-web/src/components/ConversationPane.vue b/apps/kimi-web/src/components/ConversationPane.vue index 018deadb8..ede783b44 100644 --- a/apps/kimi-web/src/components/ConversationPane.vue +++ b/apps/kimi-web/src/components/ConversationPane.vue @@ -871,7 +871,9 @@ onUnmounted(() => { display: flex; flex-direction: column; gap: 10px; - width: 260px; + /* Wider than the old 260px — the todo/task cards were cramped. */ + width: 300px; + max-width: calc(100vw - 32px); } @media (max-width: 1199px) { .float-stack { display: none; } diff --git a/apps/kimi-web/src/components/TasksCard.vue b/apps/kimi-web/src/components/TasksCard.vue index 32135c4aa..9cf7bf0c2 100644 --- a/apps/kimi-web/src/components/TasksCard.vue +++ b/apps/kimi-web/src/components/TasksCard.vue @@ -3,11 +3,14 @@ of the conversation pane, codex-style). Shows the running tasks only; clicking the header jumps to the full ~/tasks tab. -->