Repository navigation
Description
Short summary
When the right sidebar is opened from the landing screen (no worktree selected) - and from the settings and tasks views - its column starts ~42px below the top of the window, sitting beneath the full-width titlebar instead of aligning with it.
As soon as a worktree is selected (workspace view, with a terminal), the right sidebar snaps into the correct position: its own 42px header anchors at y=0, in line with the rest of the chrome.
What I expected
The right sidebar should anchor at the top of the window (its 42px header at y=0) regardless of whether the user is on the landing screen, settings, tasks, or workspace view - i.e., it should look like the workspace-view screenshot in every view.
What actually happens
On landing / settings / tasks, the full-width titlebar covers the top of the window across the whole window width - including over the right-sidebar column - so the right sidebar's own header is pushed down by 42px.
Reproduction
- Open Orca with no worktree selected (landing screen).
- Click the right sidebar toggle in the top-right of the titlebar to open the right sidebar.
- Observe: the right sidebar's icon row appears ~42px below the top of the window, with the dark titlebar visible above it.
- Now select any worktree so a terminal opens.
- Observe: the right sidebar suddenly aligns at
y=0, with its own header replacing the titlebar on its side.
Screenshots
Bug - landing view, right sidebar opens below the titlebar:
Expected - workspace view with a terminal, right sidebar at the top:
Likely root cause
In src/renderer/src/App.tsx (around lines 938–1078) the shell is built as a flex-col where the full-width .titlebar is rendered above the inner flex-row that hosts <RightSidebar />. Because the titlebar spans the entire window width, it sits over the right sidebar's column too, so the right sidebar's own 42px header (src/renderer/src/components/right-sidebar/index.tsx:305 / :319) ends up at y≈42px instead of y=0.
When workspaceActive (App.tsx:535 - activeView !== 'settings' && activeWorktreeId !== null) becomes true, the full-width titlebar is dropped and each column gets its own 42px header strip, so everything aligns at y=0. That's why opening a worktree (which usually auto-spawns a terminal) appears to "fix" the layout.
Environment
- OS: macOS
- Orca version: v1.3.30-rc.0
- Branch:
main
Activity
fix(layout): align right sidebar to top in non-workspace views
fix(layout): align right sidebar to top in non-workspace views (stabl…
fix(layout): align right sidebar to top in non-workspace views (stabl…