fix: various css for the sidebar

This commit is contained in:
iCrawl
2022-07-26 09:48:40 +02:00
parent 1275918ca8
commit 798466a696
6 changed files with 17 additions and 16 deletions

View File

@@ -9,12 +9,12 @@ export function SidebarLayout({
}: PropsWithChildren<Partial<ItemListProps & { data: { member: ReturnType<typeof findMember> } }>>) {
return (
<div className="flex flex-col lg:flex-row overflow-hidden max-w-full h-full max-h-full bg-white dark:bg-dark">
<div className="w-full lg:max-w-[370px] lg:min-w-[370px]">
<div className="h-full w-full lg:max-w-[370px] lg:min-w-[370px]">
{packageName && data ? (
<ItemSidebar packageName={packageName} data={data} selectedMember={data.member?.name} />
) : null}
</div>
<div className="max-h-full grow overflow-auto">{children}</div>
<div className="max-h-full grow overflow-x-hidden overflow-y-auto">{children}</div>
</div>
);
}