Skip to content

fix(chat-sidebar): position launcher at bottom-right via fixed wrapper#310

Merged
blove merged 1 commit into
mainfrom
claude/chat-sidebar-launcher-position
May 14, 2026
Merged

fix(chat-sidebar): position launcher at bottom-right via fixed wrapper#310
blove merged 1 commit into
mainfrom
claude/chat-sidebar-launcher-position

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 14, 2026

Summary

Follow-up to #308. The previous fix added `` to the chat-sidebar template, but the launcher itself has no inherent fixed positioning — it's a 56×56 div with `display: inline-block`. chat-popup positions its launcher via `:host { position: fixed }`, but chat-sidebar's `:host` is `display: block` to allow the content-pushes-on-open behavior.

The newly-added launcher in chat-sidebar flowed into the document at the natural position of the component — which on demo.cacheplane.ai ended up at (280, 1972), well off-screen.

Fix

Wrap the launcher in a `.chat-sidebar__launcher` div with:

```css
position: fixed;
bottom: 1rem;
right: 1rem;
z-index: 30;
```

Matches chat-popup's launcher coordinates exactly. Also hides the launcher when the sidebar is open (the panel covers it; the panel has its own close button).

Test plan

  • Existing chat-sidebar tests pass
  • Browser smoke on demo.cacheplane.ai/sidebar after merge:
    • Launcher visible at bottom-right
    • Click → sidebar slides in
    • Close button (panel) → sidebar slides out

🤖 Generated with Claude Code

The previous fix (#308) added <chat-launcher-button> to the
chat-sidebar template, but the launcher itself has no inherent
fixed positioning (it's a 56×56 div with `display: inline-block`).
chat-popup positions its launcher via :host { position: fixed }, but
chat-sidebar's :host is `display: block` to allow the
content-pushes-on-open behavior. So the newly-added launcher in
chat-sidebar flowed into the document at the natural position of
the component — which for the demo shell ends up at (280, 1972),
well off-screen.

Wrap the launcher in a .chat-sidebar__launcher div with
  position: fixed; bottom: 1rem; right: 1rem; z-index: 30;
matching chat-popup's launcher coordinates exactly.

Also hide the launcher when the sidebar is open (the panel covers
it and the panel has its own close button).

Verified via demo.cacheplane.ai browser smoke after the previous fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 14, 2026 2:03am

Request Review

@blove blove merged commit 6c005b8 into main May 14, 2026
15 checks passed
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