Fix file tree scrolling in Changes panel (Vibe Kanban) #1877
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.
Summary
Problem
The file tree in the Changes panel was not scrollable even when there were many changed files. Users couldn't see all changed files when the list was long, as content was cut off at the bottom of the panel.
Root Cause
The
CollapsibleSectionHeadercomponent was missing proper CSS height constraints. In flexbox, items have an implicitmin-height: autowhich prevents them from shrinking below their content's intrinsic size. Withoutmin-h-0andh-full, the container grew unbounded to fit all content instead of constraining to its parent's height, preventing the inneroverflow-autodiv from ever actually overflowing.Solution
Added
min-h-0 h-fullto the outer container div inCollapsibleSectionHeader.tsx. This ensures the height constraint flows properly from parent to child, enabling the inner scrollable area to work correctly.Changes
frontend/src/components/ui-new/primitives/CollapsibleSectionHeader.tsx: Addedmin-h-0 h-fullclasses to the root containerTesting
This PR was written using Vibe Kanban