mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[DevTools] Swap Components tab layout based on container size (#34035)
This commit is contained in:
1 parent
33a2bf78c4
commit
9c9136b441
3 files changed
+9
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user