Skip to content

[DevTools] Shrink/Deshrink Owners breadcrumbs on any resizes#35694

Merged
eps1lon merged 2 commits intofacebook:mainfrom
eps1lon:sebbie/02-04-_devtools_shrink/deshrink_owners_breadcrumbs_on_all_resizes
Feb 5, 2026
Merged

[DevTools] Shrink/Deshrink Owners breadcrumbs on any resizes#35694
eps1lon merged 2 commits intofacebook:mainfrom
eps1lon:sebbie/02-04-_devtools_shrink/deshrink_owners_breadcrumbs_on_all_resizes

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Feb 4, 2026

Summary

We only recalculated the size when the window resizes. However, resize also happens when the inner panes are resized. Deep owner tree took up all the space since resizing wasn't possible anymore.

We use ResizeObserver now to cover all cases triggering a resize.

How did you test this change?

Before:

CleanShot.2026-02-04.at.22.55.29.mp4

After:

CleanShot.2026-02-04.at.22.48.04.mp4

@meta-cla meta-cla bot added the CLA Signed label Feb 4, 2026
@eps1lon eps1lon changed the title [DevTools] Shrink/Deshrink Owners breadcrumbs on all resizes [DevTools] Shrink/Deshrink Owners breadcrumbs on pane resizes Feb 4, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Feb 4, 2026
@eps1lon eps1lon requested a review from hoxyq February 4, 2026 22:03
@eps1lon eps1lon marked this pull request as ready for review February 4, 2026 22:03
@eps1lon eps1lon changed the title [DevTools] Shrink/Deshrink Owners breadcrumbs on pane resizes [DevTools] Shrink/Deshrink Owners breadcrumbs on any resizes Feb 5, 2026
@eps1lon eps1lon requested a review from hoxyq February 5, 2026 00:43
@eps1lon eps1lon merged commit bb53387 into facebook:main Feb 5, 2026
234 checks passed
@eps1lon eps1lon deleted the sebbie/02-04-_devtools_shrink/deshrink_owners_breadcrumbs_on_all_resizes branch February 5, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants