Skip to content

Commit

Permalink
fix(pwa): sidebar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mayneyao committed Oct 18, 2024
1 parent d532ace commit a88e285
Show file tree
Hide file tree
Showing 2 changed files with 8,388 additions and 10,743 deletions.
26 changes: 16 additions & 10 deletions apps/web-app/[database]/base-pwa-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,22 @@ export function PWALayoutBase({
{children}
</main>
</div>
{isAiOpen && (
<Suspense fallback={<Loading />}>
<AIChat />
</Suspense>
)}
{isExtAppOpen && (
<div className="relative flex h-full w-[475px] shrink-0 flex-col overflow-auto border-l border-l-slate-400 p-2">
<ExtensionPage />
</div>
)}
<div
className={cn(
"h-full shrink-0 overflow-x-hidden border-l min-w-[400px]"
)}
>
{isAiOpen && (
<Suspense fallback={<Loading />}>
<AIChat />
</Suspense>
)}
{isExtAppOpen && (
<div className="relative flex h-full w-[475px] shrink-0 flex-col overflow-auto border-l border-l-slate-400 p-2">
<ExtensionPage />
</div>
)}
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit a88e285

Please sign in to comment.