Skip to content

fix(web): keep Sidebar single-root so collapse hides it#1406

Merged
wbxl2000 merged 1 commit into
mainfrom
fix/web-sidebar-collapse-single-root
Jul 6, 2026
Merged

fix(web): keep Sidebar single-root so collapse hides it#1406
wbxl2000 merged 1 commit into
mainfrom
fix/web-sidebar-collapse-single-root

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue — reported and fixed directly from the web UI.

Problem

Collapsing the sidebar in the web UI left it mounted at the rail width instead of hiding it, so the session list got squashed into a narrow column of clipped icons and the conversation pane was pushed aside. Root cause: a top-level <Teleport> in the sidebar template made the component multi-root, so v-show could not apply display:none to a Fragment and silently did nothing.

What changed

Moved the teleport inside the sidebar <aside> so the component is single-root again and v-show hides it correctly on collapse. The teleported overlay still renders to body, so its behavior is unchanged. Changeset included.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (N/A — single-root structural fix; verified by collapsing the sidebar in the UI.)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

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-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 67fb48c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 6, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@67fb48c
npx https://pkg.pr.new/@moonshot-ai/kimi-code@67fb48c

commit: 67fb48c

@wbxl2000 wbxl2000 merged commit ce41f4b into main Jul 6, 2026
11 checks passed
@wbxl2000 wbxl2000 deleted the fix/web-sidebar-collapse-single-root branch July 6, 2026 04:40
@github-actions github-actions Bot mentioned this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant