From 67fb48c9ee3ea6af8053405c46fd04b0735e5c6e Mon Sep 17 00:00:00 2001 From: qer Date: Mon, 6 Jul 2026 12:24:46 +0800 Subject: [PATCH] fix(web): keep Sidebar single-root so collapse hides it A top-level Teleport in the sidebar template made the component multi-root, so v-show could not apply display:none and the collapsed sidebar stayed mounted at the rail width, squeezing the conversation. Move the teleport inside the aside so the sidebar is single-root again. --- .changeset/fix-sidebar-collapse-single-root.md | 5 +++++ apps/kimi-web/src/components/Sidebar.vue | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/fix-sidebar-collapse-single-root.md diff --git a/.changeset/fix-sidebar-collapse-single-root.md b/.changeset/fix-sidebar-collapse-single-root.md new file mode 100644 index 0000000000..52444cc399 --- /dev/null +++ b/.changeset/fix-sidebar-collapse-single-root.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +web: Fix the collapsed sidebar not hiding and squeezing the conversation layout. diff --git a/apps/kimi-web/src/components/Sidebar.vue b/apps/kimi-web/src/components/Sidebar.vue index 0a31ae5fc0..a3d09b8178 100644 --- a/apps/kimi-web/src/components/Sidebar.vue +++ b/apps/kimi-web/src/components/Sidebar.vue @@ -752,10 +752,13 @@ onBeforeUnmount(() => { @select="onSelectSession" @close="showSearch = false" /> + + + + - - -