From f5caf4cca7a187ac015cacedec61aea55b95dd88 Mon Sep 17 00:00:00 2001 From: qer Date: Tue, 16 Jun 2026 15:38:30 +0800 Subject: [PATCH] feat(kimi-web): consistent rules for the right-side detail layer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The transient detail panels (thinking, compaction summary, subagent detail, mobile file/media preview) now share one set of rules: - the aside is a labelled role=complementary region (aria-hidden when collapsed), - Escape closes whichever panel is open — handled in App on the capture phase so it takes precedence over the conversation's "Esc interrupts a run" handler instead of firing both, - every close button has an aria-label (not just a title) and a focus-visible ring; thinking/subagent close targets bumped to 28x28, - FilePreview toolbar buttons get focus-visible rings too. --- apps/kimi-web/src/App.vue | 30 ++++++++++++++++++- .../src/components/AgentDetailPanel.vue | 10 +++++-- apps/kimi-web/src/components/FilePreview.vue | 9 +++++- .../kimi-web/src/components/ThinkingPanel.vue | 10 +++++-- apps/kimi-web/src/i18n/locales/en/layout.ts | 1 + apps/kimi-web/src/i18n/locales/zh/layout.ts | 1 + 6 files changed, 53 insertions(+), 8 deletions(-) diff --git a/apps/kimi-web/src/App.vue b/apps/kimi-web/src/App.vue index a53df524b..baa86cff0 100644 --- a/apps/kimi-web/src/App.vue +++ b/apps/kimi-web/src/App.vue @@ -1,6 +1,6 @@