Skip to content

fix(desktop): one 1px border between the panes and the sidebar - #6777

Merged
saddlepaddle merged 1 commit into
ParadevAI:mainfrom
0x962:double-border
Aug 23, 2026
Merged

saddlepaddle merged 1 commit into
ParadevAI:mainfrom
0x962:double-border

Conversation

@0x962

@0x962 0x962 commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Opening a file leads to some "double" borders. It leads to a lot of variance in the different border styles used in the app. There is also a misalignment (shown below) that is fixed.

Top strip alignment

alignment

Pane seams

seams

Full window

Before:

before

After:

after

https://claude.ai/code/session_01AWpYhSNQVyCQWUfuJ4X5bP


Summary by cubic

Ensure a single 1px seam between panes and the right sidebar, and align the sidebar header with the pane tab bar. Old: focused panes drew a 2px border beside a 1px divider (3px seam) and the sidebar header sat lower; New: panes draw no box border, seams are 1px, headers align at 40px; focus is indicated by header opacity.

  • Remove the pane’s 2px focus border in packages/panes Pane; rely on PaneHeader dimming inactive panes.
  • Keep the single 1px seam from the split ResizableHandle and the sidebar ResizablePanel; no adjacent double lines.
  • Set PRActionHeader to h-10 to match the TabBar height in packages/panes.
  • Apply -mt-px to SidebarHeader so its top border shares a row with the tab bar’s bottom border.
  • Scope: v2 workspace only; the v1 route using mosaic-theme.css is unchanged.
  • Review: open two panes next to the right sidebar; seams should be 1px and the two horizontal borders should meet; confirm focus readability without a box outline.

Written for commit fb96411. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Style
    • Adjusted workspace sidebar and pull request header spacing for a more compact layout.
    • Simplified pane borders by removing the active-pane border highlight and transition effect.
    • Preserved existing layout and behavior across workspace navigation and panes.

@coderabbitai

coderabbitai Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 24183cac-2212-4dfc-b2fa-a74e2bccb4f7

📥 Commits

Reviewing files that changed from the base of the PR and between fd6d2a6 and fb96411.

📒 Files selected for processing (3)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceSidebar/components/PRActionHeader/PRActionHeader.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceSidebar/components/SidebarHeader/SidebarHeader.tsx
  • packages/panes/src/react/components/Workspace/components/Tab/components/Pane/Pane.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The change adjusts workspace sidebar dimensions and removes conditional active-pane border styling. It also documents the parentDirection behavior for solo panes.

Changes

Workspace layout styling

Layer / File(s) Summary
Sidebar header dimensions
apps/desktop/.../PRActionHeader.tsx, apps/desktop/.../SidebarHeader.tsx
The PR action header height changes from h-12 to h-10. The sidebar header adds a negative one-pixel top margin.
Pane container styling
packages/panes/.../Pane.tsx
The pane documents that parentDirection is null for the layout root. Conditional active-pane border and transition classes are removed.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to fb964

This localized styling change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

Suggested reviewers: saddlepaddle

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the primary change: fixing the 1px border seam between panes and the sidebar.
Description check ✅ Passed The description explains the problem, changes, scope, and visual verification with before-and-after screenshots.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Open a file editor next to another pane and the divider beside it grew to
3px. The pane box drew a 2px border that turned from transparent to
border-coloured when the pane took focus, and that border sat directly
against the 1px line its neighbour already drew: the split ResizableHandle
on one side, the right sidebar's ResizablePanel border on the other.

The pane no longer draws that border. PaneHeader already dims to 60%
opacity on the panes that are not focused, so the focused pane is still
readable, and every seam is now a single 1px line.

The sidebar's top strip also stepped down from the pane tab bar. The PR
action header was h-12 against the tab bar's h-10, so the two horizontal
borders landed 9px apart at the divider. The header is now h-10, and the
sidebar tab row is pulled up one pixel so its top border shares a screen
row with the tab bar's bottom border.

Verified against a running dev build over CDP: both border bands report
[39, 40], and the two seams measure 1px where they measured 3px before.

Claude-Session: https://claude.ai/code/session_01AWpYhSNQVyCQWUfuJ4X5bP
@0x962
0x962 marked this pull request as ready for review August 23, 2026 00:40
@saddlepaddle
saddlepaddle merged commit f7ec539 into ParadevAI:main Aug 23, 2026
2 checks passed
@Kitenite Kitenite mentioned this pull request Aug 24, 2026
2 of 3 tasks
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.

2 participants