Repository navigation
feat(navigator): denser rows, hover guides and a tinted subtree block - #79
Merged
Merged
Conversation
Tighten the navigator: a 12px indent, regular-weight labels and rounded rows. Every density knob is a CSS custom property on `.navigator` in styles.css, so the look is tuned in one place; the row indent and the drop gaps read `--navigator-indent`. While the pointer is over the tree, a thin guide drops from each open parent's chevron past its last child, so deep nesting stays readable. The selected row's open subtree sits in a lightly tinted block under it, so a selection reads as one container. A component's block takes the component green. Leaves no longer show a drag grip: the whole row is draggable, and the empty slot keeps icons aligned with their siblings. Drop gaps no longer add space between rows. They overlap the row edges and catch the pointer only while a drag is over the navigator, so a click on a row's edge still selects that row. Where several levels end at once, the deeper gap sits on top and the pointer's x position picks the level. Rows carry their depth as `data-depth`, so the navigator test compares nesting levels instead of a pixel step that now lives in CSS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A denser, easier-to-scan navigator:
.navigatorinstyles.css, so the look is tuned in one place.--subtree-tint: 8%). It uses the accent colour, or green for components.Why
On real pages (10+ sections, components inside components) the old tree was hard to scan: wide indent, bold labels, and no cue for where a parent ends. The guides and the tinted block answer "what is inside what" at a glance.
Notes for review
TreeDropGap'smarginLeftreads--navigator-indentwith a16pxfallback, so the pages tree is unchanged.data-depth.navigator.test.jscompares nesting levels instead of a pixel step that now lives in CSS.Testing
npm run check:changedpasses.renderer/structure/*andrenderer/pages/*suites pass (21/21).🤖 Generated with Claude Code