fix(tree-view): remove unnecessary right margin from nested content#361
Merged
ieedan merged 1 commit intoieedan:mainfrom Mar 15, 2026
Merged
Conversation
Change Collapsible.Content from mx-2 to ml-2 so nested items only indent on the left. The right margin shrinks the available width by 0.5rem per nesting level, causing highlight/selection bars to be progressively narrower at deeper levels.
|
|
@braden-w is attempting to deploy a commit to the Aidan Bleser's Team Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
The folder's
Collapsible.Contentusesmx-2 border-lfor indentation, but only the left margin is needed for the visual indent. The right margin (mr-2) shrinks the available width by 0.5rem per nesting level, causing highlight/selection bars to be progressively narrower at deeper levels.One-line change:
Before:
After:
Discovered while building a file explorer where nested items had visibly shorter hover/selection highlights than their top-level siblings—related to #360 but addresses a separate width constraint.