Repository navigation
fix(web): reduce sidebar separators to header and footer - #787
Conversation
In a project the sidebar drew up to seven separators: one under the header, one between each of the navigation sections and one above the footer. Every section already has its own heading, so the lines between them added clutter without separating anything the headings didn't. Keep the two separators that frame the fixed header (logo and project switcher) and footer (theme and user menu) and drop the ones between sections, in both the project and workspace sidebars. The CSS rule that hid back-to-back separators is no longer needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
ℹ️ Minor suggestion only — the divider cleanup itself looks correct.
Approach: sound — removing the dividers where they are rendered and dropping the now-dead adjacency-hiding rule keeps the change scoped to presentation, and the two separators that frame the header and footer are untouched.
Reviewed changes
- Project sidebar: all five inter-section
<SidebarSeparator />s removed (ProjectNav, Interactions, Docs, thesidebar.project.sectionextension point, plugin pages, project nav items) andSidebarContentno longer carries the[&_[data-slot=sidebar-separator]+[data-slot=sidebar-separator]]:hiddenworkaround. - Workspace sidebar: separators before the Administration group and the plugin-admin group removed, with the resulting single-child fragments unwrapped — the diff is otherwise pure re-indentation.
- Comment: the top-of-content rationale is updated to say headings separate sections and separators only frame header/footer.
Every section still renders a SidebarGroup, so group padding continues to provide ~16px between sections. biome check on the file passes.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
| {/* Navigation — switches between workspace and project context. | ||
| Sections are set apart by their own headings, so no dividers | ||
| between them; separators only frame the header and footer. */} | ||
| <SidebarContent> |
There was a problem hiding this comment.
The rationale in the comment above only holds when the section headings are visible. In the collapsed icon rail those headings are gone — SidebarGroupLabel is forced to opacity-0/-mt-8 under data-collapsible=icon, and ProjectNavItems/CollapsibleSidebarGroup skip rendering the label entirely when isRail — so rail mode now separates sections with padding alone (~16px between adjacent SidebarGroup p-2 boxes). Worth a look at the rail before merging; if the grouping reads too loosely, keeping these dividers only when isRail would preserve the intent.
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀
Secondary text and hairlines were faded well past readability. The base tokens were fine on their own (muted text 4.7:1 on white), but components layered heavy opacity on top: ~380 uses of muted text at /30-/60 rendered at roughly 1.5-2.3:1, and borders at /10-/30 were close to invisible (1.04-1.12:1). Tokens (index.css): - --muted-foreground: #737373 -> #5f5f5f (light, 6.4:1), #888888 -> #a0a0a0 (dark, 7.6:1) - --border/--input: #d4d4d4 -> #c8c8c8 (light), #2a2a2a -> #3a3a3a (dark) - --sidebar-border: #e8e8e8 -> #dedede (light), #1e1e1e -> #2a2a2a (dark) Opacity floors across components (mechanical sweep): - text-muted-foreground /30-/60 -> /90 (>= 4.5:1 on background, muted and secondary surfaces in both themes; /85 would still fail at 4.48:1), /70-/90 -> full strength, so two tiers remain - text-sidebar-foreground /30-/50 -> /60 (4.94:1 light, 6.53:1 dark); the sidebar has its own foreground token - border/divide/ring/bg-border /10-/35 -> /50, /40 -> /60; Gantt gridlines /12 -> /30 so they stay lighter than row dividers. The dashed row dividers from Paca-AI#785 are left as tuned. The Gantt drag tests located groups by a border class; they now use a `data-gantt-group` attribute so styling changes don't break them. Rebuilt on current master (after Paca-AI#784, Paca-AI#785-Paca-AI#787, Paca-AI#789) so the new file-management components get the same treatment. Co-Authored-By: Claude Opus 5.5 <[email protected]>

Summary
In a project, the sidebar drew up to seven separators: one under the header, one between each navigation section, and one above the footer. Every section already has its own heading (Interactions, Docs, Plugins, Project; Administration in the workspace sidebar), so the lines between them added clutter without separating anything the headings didn't already.
This keeps the two separators that frame the fixed header (logo and project switcher) and the fixed footer (theme and user menu), and removes the ones between sections in both the project and workspace sidebars. The CSS rule that hid back-to-back separators is no longer needed and is removed.
Most of the diff is re-indentation: removing the separators left the admin and plugin sections inside one-child fragments (
noUselessFragments), so those fragments were unwrapped.Type of Change
Checklist
Note
Plugin-contributed sidebar sections (
sidebar.project.section) are now separated only by spacing, so a plugin section without a heading will sit directly under the section above it.Testing
bun run lint,tsc -band theapp-shelltests pass.🤖 Generated with Claude Code