fix: remove chat sidebar from ai-cad
This commit is contained in:
parent
450e998d3f
commit
f42ade947c
@ -74,40 +74,32 @@ export function ChatShell({
|
|||||||
return <div className="h-svh w-full overflow-y-auto">{children}</div>;
|
return <div className="h-svh w-full overflow-y-auto">{children}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isAiCadWorkspace) {
|
||||||
|
return <div className="min-h-svh w-full overflow-y-auto">{children}</div>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarProvider defaultOpen={!isCollapsed}>
|
<SidebarProvider defaultOpen={!isCollapsed}>
|
||||||
{isAiCadWorkspace ? null : (
|
<TopNavbar
|
||||||
<TopNavbar
|
agentEnabled={agentEnabled}
|
||||||
agentEnabled={agentEnabled}
|
customLinks={customLinks}
|
||||||
customLinks={customLinks}
|
isAdmin={isAdmin}
|
||||||
isAdmin={isAdmin}
|
productPlanningEnabled={productPlanningEnabled}
|
||||||
productPlanningEnabled={productPlanningEnabled}
|
rankingEnabled={rankingEnabled}
|
||||||
rankingEnabled={rankingEnabled}
|
settingsHref={settingsHref}
|
||||||
settingsHref={settingsHref}
|
siteLogo={siteLogo}
|
||||||
siteLogo={siteLogo}
|
siteLogoDark={siteLogoDark}
|
||||||
siteLogoDark={siteLogoDark}
|
siteName={siteName}
|
||||||
siteName={siteName}
|
toolbox1Enabled={toolbox1Enabled}
|
||||||
toolbox1Enabled={toolbox1Enabled}
|
toolbox1Name={toolbox1Name}
|
||||||
toolbox1Name={toolbox1Name}
|
toolbox2Enabled={toolbox2Enabled}
|
||||||
toolbox2Enabled={toolbox2Enabled}
|
toolbox2Name={toolbox2Name}
|
||||||
toolbox2Name={toolbox2Name}
|
tutorialEnabled={tutorialEnabled}
|
||||||
tutorialEnabled={tutorialEnabled}
|
tutorialVideos={tutorialVideos}
|
||||||
tutorialVideos={tutorialVideos}
|
/>
|
||||||
/>
|
<div className="flex h-svh w-full overflow-hidden pl-16 [--sidebar-offset:4rem]">
|
||||||
)}
|
|
||||||
<div
|
|
||||||
className={
|
|
||||||
isAiCadWorkspace
|
|
||||||
? "flex min-h-svh w-full pl-16 [--sidebar-offset:4rem]"
|
|
||||||
: "flex h-svh w-full overflow-hidden pl-16 [--sidebar-offset:4rem]"
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<AppSidebar user={user} />
|
<AppSidebar user={user} />
|
||||||
<SidebarInset
|
<SidebarInset className="h-full">{children}</SidebarInset>
|
||||||
className={isAiCadWorkspace ? "min-h-svh overflow-visible" : "h-full"}
|
|
||||||
>
|
|
||||||
{children}
|
|
||||||
</SidebarInset>
|
|
||||||
</div>
|
</div>
|
||||||
</SidebarProvider>
|
</SidebarProvider>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user