Skip to content

fix: file browser scrolling and layout overflow issues#89

Merged
FSM1 merged 3 commits into
mainfrom
claude/fix-file-list-scroll-SCEqm
Feb 11, 2026
Merged

fix: file browser scrolling and layout overflow issues#89
FSM1 merged 3 commits into
mainfrom
claude/fix-file-list-scroll-SCEqm

Conversation

@FSM1

@FSM1 FSM1 commented Feb 10, 2026

Copy link
Copy Markdown
Owner

Summary

Fixed layout and scrolling issues in the file browser component by properly configuring flex containers and overflow behavior.

Key Changes

  • Added overflow: hidden to the main file browser container to prevent unintended overflow
  • Updated .file-list with flex: 1 and min-height: 0 to allow proper flex shrinking and enable scrolling in child elements
  • Updated .file-list-body with:
    • flex: 1 to fill available space
    • min-height: 0 to enable scrolling within flex containers
    • overflow-y: auto to enable vertical scrolling for file items

Implementation Details

These changes follow the CSS flexbox pattern for scrollable containers within flex layouts. The min-height: 0 property is necessary to allow flex items to shrink below their content size, which is required for scrolling to work properly in nested flex containers. This ensures the file list can scroll independently while maintaining the overall layout structure.

https://claude.ai/code/session_01BCBTX9Dk4k9WVcfWUKvqmD

Summary by CodeRabbit

  • Style
    • Refined file browser layout constraints to improve scrolling behavior and container flexibility, enabling better responsiveness and visual presentation when managing files.

The file list page was scrolling the entire main content area when there
were many files, which caused the toolbar (breadcrumbs, action buttons,
sync indicator) to scroll out of view. Now only the file list body
scrolls while the toolbar and header remain fixed on screen.

- Add overflow: hidden to .file-browser-content to contain overflow
- Add flex: 1 and min-height: 0 to .file-list so it fills remaining space
- Add overflow-y: auto to .file-list-body for isolated scroll

https://claude.ai/code/session_01BCBTX9Dk4k9WVcfWUKvqmD
Copilot AI review requested due to automatic review settings February 10, 2026 23:03
@FSM1 FSM1 self-assigned this Feb 10, 2026
@coderabbitai

coderabbitai Bot commented Feb 10, 2026

Copy link
Copy Markdown

Walkthrough

Updated CSS layout properties in the file browser stylesheet to improve flex container behavior. Added overflow constraints and flex growth rules to .file-list and .file-list-body elements to enable proper scrolling and sizing within flex containers.

Changes

Cohort / File(s) Summary
File Browser Styling
apps/web/src/styles/file-browser.css
Added overflow: hidden to .file-browser-content, and added flex: 1, min-height: 0, and overflow-y: auto properties to .file-list and .file-list-body to improve flexbox layout behavior and enable internal scrolling.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately summarizes the main change: fixing file browser scrolling and layout overflow issues through CSS flexbox adjustments.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/fix-file-list-scroll-SCEqm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the file browser’s flex/overflow CSS so the file list can scroll correctly within a constrained layout, avoiding page-level overflow.

Changes:

  • Set the main .file-browser-content container to overflow: hidden to prevent unintended overflow outside the file browser area.
  • Updated .file-list and .file-list-body with flex: 1 and min-height: 0 to allow flex shrinking and enable inner scrolling.
  • Enabled vertical scrolling on .file-list-body via overflow-y: auto.

Comment thread apps/web/src/styles/file-browser.css Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@FSM1 FSM1 changed the title Fix file browser scrolling and layout overflow issues fix file browser scrolling and layout overflow issues Feb 10, 2026
@FSM1 FSM1 changed the title fix file browser scrolling and layout overflow issues fix: file browser scrolling and layout overflow issues Feb 10, 2026
@FSM1 FSM1 merged commit 8d3f190 into main Feb 11, 2026
7 of 8 checks passed
@FSM1 FSM1 deleted the claude/fix-file-list-scroll-SCEqm branch February 11, 2026 00:15
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.

3 participants