Repository navigation
fix(layout): align right sidebar to top in non-workspace views - #1356
Merged
AmethystLiang merged 2 commits intoMay 5, 2026
Merged
Conversation
AmethystLiang
requested review from
AmethystLiang
and removed request for
brennanb2025
May 5, 2026 17:15
Wrap the left + center columns in a flex-col that owns the conditional titlebar, and lift <RightSidebar /> to be a sibling of that wrapper. The titlebar now spans only the left+center area, so the right sidebar's own header anchors at the top of the window in landing/settings/tasks views — matching the workspace-view alignment. Also gate the titlebar's right-sidebar toggle on !rightSidebarOpen so it no longer double-renders alongside the close button inside the right sidebar's own header when the sidebar is open. Closes stablyai#1354
PR stablyai#1381 shrank .titlebar-left to 36px but left .titlebar at 42px. Before the right-sidebar top-alignment fix, the 6px mismatch was hidden because the right sidebar was pushed below the titlebar in non-workspace views. With top-alignment, the 36px right-sidebar header no longer lines up with the 42px titlebar — visible as a 6px seam on the Landing page when the right sidebar is open. Match all three (titlebar, titlebar-left, right-sidebar header) at 36px so the top strip is uniform across views. Co-authored-by: Orca <[email protected]>
AmethystLiang
force-pushed
the
fix/right-sidebar-top-alignment
branch
from
May 5, 2026 17:56
1cf5f9c to
0a8f875
Compare
AmethystLiang
approved these changes
May 5, 2026
AmethystLiang
left a comment
Contributor
There was a problem hiding this comment.
Rebased onto main and added a 6px titlebar height fix on top — non-workspace .titlebar was still 42px while .titlebar-left and the right-sidebar header are 36px, which left a visible seam after this PR top-aligned them. Merging once CI is green. Thanks!
3 tasks
AmethystLiang
added a commit
that referenced
this pull request
May 5, 2026
Two related top-band issues: 1. Non-workspace view: Tasks page used pt-3 above its X/source-icons row, placing the cluster's center 6px below the sidebar "Tasks" nav row's center. Drop to pt-1.5 so both rows center on the same baseline. 2. Workspace view: the strip TaskPage renders to replace the full-width titlebar was 42px, but PR #1356 standardized titlebar/titlebar-left/ right-sidebar header at 36px. Match that with h-9 so the band is uniform across columns when a worktree is active. Co-authored-by: Orca <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…yai#1356) * fix(layout): align right sidebar to top in non-workspace views Wrap the left + center columns in a flex-col that owns the conditional titlebar, and lift <RightSidebar /> to be a sibling of that wrapper. The titlebar now spans only the left+center area, so the right sidebar's own header anchors at the top of the window in landing/settings/tasks views — matching the workspace-view alignment. Also gate the titlebar's right-sidebar toggle on !rightSidebarOpen so it no longer double-renders alongside the close button inside the right sidebar's own header when the sidebar is open. Closes stablyai#1354 * fix(titlebar): shrink non-workspace .titlebar to 36px PR stablyai#1381 shrank .titlebar-left to 36px but left .titlebar at 42px. Before the right-sidebar top-alignment fix, the 6px mismatch was hidden because the right sidebar was pushed below the titlebar in non-workspace views. With top-alignment, the 36px right-sidebar header no longer lines up with the 42px titlebar — visible as a 6px seam on the Landing page when the right sidebar is open. Match all three (titlebar, titlebar-left, right-sidebar header) at 36px so the top strip is uniform across views. Co-authored-by: Orca <[email protected]> --------- Co-authored-by: Jinjing <[email protected]> Co-authored-by: Orca <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Two related top-band issues: 1. Non-workspace view: Tasks page used pt-3 above its X/source-icons row, placing the cluster's center 6px below the sidebar "Tasks" nav row's center. Drop to pt-1.5 so both rows center on the same baseline. 2. Workspace view: the strip TaskPage renders to replace the full-width titlebar was 42px, but PR stablyai#1356 standardized titlebar/titlebar-left/ right-sidebar header at 36px. Match that with h-9 so the band is uniform across columns when a worktree is active. Co-authored-by: Orca <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a layout bug where the right sidebar opened below the full-width titlebar in non-workspace views (landing, settings, tasks), instead of anchoring at the top of the window like it does in workspace view.
Root cause
src/renderer/src/App.tsxbuilt the shell as aflex-colwith the full-width.titlebarrendered above the inner flex-row that hosts<RightSidebar />. Because the titlebar spanned the entire window width, it sat over the right sidebar's column too, so the right sidebar's own 42px header rendered aty≈42pxinstead ofy=0.When
workspaceActivebecomestrue(a worktree is selected), the full-width titlebar is dropped and each column gets its own 42px top strip - that's why the bug only manifested in non-workspace views.What changed
flex-colthat owns the conditional titlebar, and lifted<RightSidebar />to be a sibling of that wrapper inside the existing flex-row. The titlebar now spans only the left+center area, so the right sidebar's own header anchors at the top of the window in landing/settings/tasks - matching the workspace-view alignment.!rightSidebarOpenso it no longer double-renders alongside the close button inside the right sidebar's own header when the sidebar is open. (Same pattern already used in workspace view at the floating-toggle branch.)Workspace view layout is unchanged (zero visual diff).
Resolve #1354
Screenshots - verification
Landing, right sidebar closed - full-width titlebar as before:
Landing, right sidebar open - right sidebar anchors at the top, titlebar shrinks to the left+center area, no duplicate toggle icon:
Workspace, right sidebar closed - unchanged from before:
Workspace, right sidebar open - unchanged from before:
Test plan
pnpm run typecheck- passespnpm run lint(oxlint) - 0 warnings, 0 errorspnpm test- 3675/3675 tests pass (under Node 24 +pnpm rebuild better-sqlite3)y=0, aligned with traffic-light row