Skip to content

Fix horizontal overflow when the transform navigator is long#6199

Merged
canova merged 1 commit into
firefox-devtools:mainfrom
canova:push-mvzqonlopvlq
Jul 20, 2026
Merged

Fix horizontal overflow when the transform navigator is long#6199
canova merged 1 commit into
firefox-devtools:mainfrom
canova:push-mvzqonlopvlq

Conversation

@canova

@canova canova commented Jul 17, 2026

Copy link
Copy Markdown
Member

Main | Deploy preview

Fixes #6198

.Details relied on overflow: clip to avoid spilling its contents over neighboring panels. But overflow: clip is not a scroll container, so it doesn't zero out the flex automatic minimum size the way a scroll container would. As a flex item of .DetailsContainer, .Details kept its content-based min-width and refused to shrink below the min-content width of its widest child. A long transform navigator then could push .Details past its container, overflowed the contain: size DetailsContainer (which doesn't clip), and gave the whole viewport a horizontal scrollbar.

This regressed in #4606, which replaced react-splitter-layout (whose absolutely-positioned panes gave .Details a definite width) with flexbox. That PR added min-width: 0 to the sidebar wrapper but not to .Details.

@canova
canova requested review from fatadel and mstange July 17, 2026 14:12
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.63%. Comparing base (d4b6ff9) to head (82e2512).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6199   +/-   ##
=======================================
  Coverage   83.63%   83.63%           
=======================================
  Files         346      346           
  Lines       37174    37174           
  Branches    10318    10417   +99     
=======================================
  Hits        31090    31090           
  Misses       5656     5656           
  Partials      428      428           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Thanks for the PR! Left 2 nits.

Comment thread src/components/app/Details.css Outdated
@canova
canova force-pushed the push-mvzqonlopvlq branch from 742226c to 3c907f0 Compare July 20, 2026 14:07
.Details relied on `overflow: clip` to avoid spilling its contents over
neighboring panels. But `overflow: clip` is not a scroll container, so
it doesn't zero out the flex automatic minimum size the way a scroll
container would. As a flex item of .DetailsContainer, .Details kept its
content-based min-width and refused to shrink below the min-content
width of its widest child. A long transform navigator then could push
.Details past its container, overflowed the `contain: size`
DetailsContainer (which doesn't clip), and gave the whole viewport a
horizontal scrollbar.

This regressed in firefox-devtools#4606, which replaced react-splitter-layout (whose
absolutely-positioned panes gave .Details a definite width) with
flexbox. That PR added `min-width: 0` to the sidebar wrapper but not to
.Details.
@canova
canova force-pushed the push-mvzqonlopvlq branch from 3c907f0 to 82e2512 Compare July 20, 2026 14:08
@canova
canova enabled auto-merge (squash) July 20, 2026 14:08
@canova
canova merged commit 0b16bb3 into firefox-devtools:main Jul 20, 2026
21 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.

When transform navigation bar has a lot of transforms the whole width of the bottom panels overflows

2 participants