move height management to assets panel

This commit is contained in:
Oleg Isonen committed 2022-12-08 18:36:52 +00:00
1 parent 0885b092a2
commit 9d84e5fedf
2 files changed
+3 -4

No files matched your search

@@ -2,6 +2,7 @@ import { ImageIcon } from "@webstudio-is/icons";
import { ImageManager } from "~/designer/shared/image-manager";
import { TabName } from "../../types";
import { Header, CloseButton } from "../../lib/header";
import { Flex } from "@webstudio-is/design-system";
export const TabContent = ({
onSetActiveTab,
@@ -9,13 +10,13 @@ export const TabContent = ({
onSetActiveTab: (tabName: TabName) => void;
}) => {
return (
<>
<Flex direction="column" css={{ height: "100%" }}>
<Header
title="Assets"
suffix={<CloseButton onClick={() => onSetActiveTab("none")} />}
/>
<ImageManager />
</>
</Flex>
);
};
@@ -72,8 +72,6 @@ export const SidebarLeft = ({ publish }: SidebarLeftProps) => {
dragAndDropState.isDragging && dragAndDropState.origin === "panel"
? "hidden"
: "visible",
display: "flex",
flexDirection: "column",
}}
>
<TabContent publish={publish} onSetActiveTab={setActiveTab} />