fix inspector layout when style panel sections are collapsed

it was using flex-direction raw by default which led to that space, no idea though why it worked when opened
This commit is contained in:
Oleg Isonen committed 2022-12-20 10:12:12 +00:00
1 parent a7127d85f2
commit 0e214f208e
2 files changed
+9 -1

No files matched your search

+1
View File
@@ -155,6 +155,7 @@ const SidePanel = ({
css={{
gridArea,
display: "flex",
flexDirection: "column",
px: 0,
fg: 0,
// Left sidebar tabs won't be able to pop out to the right if we set overflowX to auto.
@@ -42,7 +42,14 @@ export const Inspector = ({ publish }: InspectorProps) => {
return (
<FloatingPanelProvider container={tabsRef}>
<Tabs defaultValue="style" ref={tabsRef}>
<Tabs
defaultValue="style"
ref={tabsRef}
css={{
// minHeight is required to get flex item height apply to this container
minHeight: 1,
}}
>
<TabsList>
<TabsTrigger value="style">
<Text>Style</Text>