mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[DevTools] Swap Components tab layout based on container size (#34035)
This commit is contained in:
parent
33a2bf78c4
commit
9c9136b441
|
|
@ -38,7 +38,7 @@
|
|||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
@container devtools (width < 600px) {
|
||||
.Components {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
flex-direction: column;
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-text);
|
||||
container-name: devtools;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.TabBar {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,12 @@ export default function portaledContent(
|
|||
<ThemeProvider>
|
||||
<div
|
||||
data-react-devtools-portal-root={true}
|
||||
style={{width: '100vw', height: '100vh'}}>
|
||||
style={{
|
||||
width: '100vw',
|
||||
height: '100vh',
|
||||
containerName: 'devtools',
|
||||
containerType: 'inline-size',
|
||||
}}>
|
||||
{children}
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user