Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-sidebar-collapse-single-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

web: Fix the collapsed sidebar not hiding and squeezing the conversation layout.
9 changes: 6 additions & 3 deletions apps/kimi-web/src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,13 @@ onBeforeUnmount(() => {
@select="onSelectSession"
@close="showSearch = false"
/>
<!-- Keep inside <aside>: a top-level <Teleport> makes Sidebar multi-root,
which breaks v-show on the host (Vue can't apply display:none to a
Fragment). Teleport still renders to body regardless of placement. -->
<Teleport to="body">
<DesignSystemView v-if="showDesignSystem" @close="showDesignSystem = false" />
</Teleport>
</aside>
<Teleport to="body">
<DesignSystemView v-if="showDesignSystem" @close="showDesignSystem = false" />
</Teleport>
</template>

<style scoped>
Expand Down
Loading