fix components panel layout

This commit is contained in:
Roman Pominov committed 2022-10-15 15:45:52 +04:00
1 parent bf8edfb4f6
commit 5abf9d558c
3 files changed
+4 -7

No files matched your search

@@ -11,7 +11,7 @@ export const BaseHeader = ({ title, actions }: BaseHeaderProps) => {
return (
<>
<Flex
css={{ height: 40, paddingLeft: "$3" }}
css={{ height: 40, paddingLeft: "$3", flexShrink: 0 }}
align="center"
justify="between"
>
@@ -132,7 +132,7 @@ export const TabContent = ({ publish, onSetActiveTab }: TabContentProps) => {
});
return (
<>
<Flex css={{ height: "100%", flexDirection: "column" }}>
<Header
title="Add"
onClose={() => {
@@ -142,7 +142,7 @@ export const TabContent = ({ publish, onSetActiveTab }: TabContentProps) => {
<Flex
gap="1"
wrap="wrap"
css={{ padding: "$1" }}
css={{ padding: "$1", overflow: "auto" }}
ref={useDragHandlers.rootRef}
>
{componentNames.map((component: Instance["component"]) => (
@@ -160,7 +160,7 @@ export const TabContent = ({ publish, onSetActiveTab }: TabContentProps) => {
))}
{dragComponent && <DragLayer component={dragComponent} point={point} />}
</Flex>
</>
</Flex>
);
};
@@ -77,9 +77,6 @@ export const SidebarLeft = ({ publish, config }: SidebarLeftProps) => {
dragAndDropState.isDragging && dragAndDropState.origin === "panel"
? "hidden"
: "visible",
// @todo: is it ok to remove? (need to fix the "components" panel at min)
// overflow: "auto",
}}
>
<TabContent