Skip to content

fix(tree-view): nested folder children not stretching to full width#360

Merged
ieedan merged 1 commit intoieedan:mainfrom
braden-w:fix/tree-view-nested-width
Mar 15, 2026
Merged

fix(tree-view): nested folder children not stretching to full width#360
ieedan merged 1 commit intoieedan:mainfrom
braden-w:fix/tree-view-nested-width

Conversation

@braden-w
Copy link
Contributor

@braden-w braden-w commented Mar 14, 2026

The children container inside TreeViewFolder doesn't grow to fill available width, so any nested items (files or sub-folders) render at content width instead of stretching across the tree.

image

The folder's collapsible content uses a flex row with two children: a thin vertical guide line (w-px) and the children container (flex flex-col). Without flex-1, the children container only sizes to its content—meaning nested file items with w-full have no parent width to fill.

One-line change:

-<div class="flex flex-col">
+<div class="flex flex-1 flex-col">

Discovered while building a file explorer where nested files had noticeably shorter hover/selection highlights than their top-level siblings.

@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2026

⚠️ No Changeset found

Latest commit: 3981731

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Mar 14, 2026

@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.

@vercel
Copy link

vercel bot commented Mar 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shadcn-svelte-extras Ready Ready Preview, Comment Mar 15, 2026 6:17pm

Copy link
Owner

@ieedan ieedan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ieedan ieedan merged commit 2a47404 into ieedan:main Mar 15, 2026
3 checks passed
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