-
Notifications
You must be signed in to change notification settings - Fork 49.2k
[DevTools] Layout for Suspense tab #34042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -46,8 +52,10 @@ type Props = { | |||
type: IconType, | |||
}; | |||
|
|||
const materialIconsViewBox = '0 -960 960 960'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just the default https://fonts.google.com/icons comes with. You can scale the paths to adhere to the default viewbox but I couldn't find a tool for that quickly and none of the LLMs produced a result I could use.
The Material icons are the ones Chrome is using for the sidebar toggles.
They're license under Apache 2: https://developers.google.com/fonts/docs/material_icons#licensing
4f56a25
to
2f33673
Compare
element.releasePointerCapture(event.pointerId); | ||
}; | ||
|
||
const onResizeTree = (event: SyntheticPointerEvent<HTMLElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's probably an abstraction here that can be shared with the Components tab. I had to slightly adjust where and what percentage values with set though so I opted for duplicating. At least during experimentation phase.
DiffTrain build for [36c63d4](facebook@36c63d4)
Based on the Components tab UI but with an additional column on the left.
With the additional left column it got a bit more crowded so I'm using the same layout Chrome's Sources panel uses: Navigator (here: tree list) and content (here: rects) are always two columns. Debugger (here: inspected element) is the rightmost column if enough horizontal space is available. Otherwise it gets pushed below navigator/content.
Icons and borders aren't aligned yet. I'll adjust those once these panes actually get content. I just needed something that allows me to easily make room for the pane I'm currently focusing on. Might move the toggle icons to the rects pane since timeline pane has very little space to deal with.
CleanShot.2025-07-29.at.19.07.12.mp4