Skip to content

x: hide sidebar account popovers while the sidebar is collapsed - #1166

Open
replicas-connector[bot] wants to merge 2 commits into
mainfrom
fix/sidebar-popovers-when-collapsed
Open

replicas-connector[bot] wants to merge 2 commits into
mainfrom
fix/sidebar-popovers-when-collapsed

Conversation

@replicas-connector

@replicas-connector replicas-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Collapsing the sidebar slides it off-canvas. The out-of-credits popover (plan card) and the earn-credits popover (rewards pill) are anchored to elements in the sidebar footer, so they followed their anchor off the left edge and showed cut off.

Fix

Both popovers now render open={open && !sidebarCollapsed}. The open state is kept, so the out-of-credits popover that auto-opens when credits run out appears when the sidebar is expanded again instead of half off-screen.

  • sidebar-content.tsx: out-of-credits popover
  • sidebar-credit-rewards.tsx: earn-credits popover

Verification

  • tsc -b in apps/x/apps/renderer passes.
  • eslint on both files: same 7 pre-existing problems before and after, none new.
  • Not run in the app.

Requested by Arjun Maheswaran, https://rowboat.spaces.x.rowboatlabs.com/s/01M0HWBJR0KSG04PWM4411N29X/m/01M4BE4WA49GHAX81962MKE753

🤖 Generated with Claude Code


Created by Arjun Maheswaran with Replicas

Replicas Workspace

replicas-connector Bot and others added 2 commits October 7, 2026 15:05
The sidebar collapses offcanvas, so the plan card and credit-rewards pill
slide off-screen and any popover anchored to them (out of credits, earn
credits) was cut off at the window edge. Keep the open state but only show
the popover while the sidebar is expanded, so an out-of-credits auto-open
appears once the sidebar is reopened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: arkml <6592213+arkml@users.noreply.github.com>
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
The first pull_request run stayed queued with no jobs and could not be
cancelled or re-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: arkml <6592213+arkml@users.noreply.github.com>
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

0 participants