An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: Resolve scrolling issue within artifact drawer on mobile
Yoshiki Miurac54de6aa85a4
diff --git a/components/artifact/artifact-drawer.tsx b/components/artifact/artifact-drawer.tsxindex 374ba576..88fbd329 100644--- a/components/artifact/artifact-drawer.tsx+++ b/components/artifact/artifact-drawer.tsx@@ -28,7 +28,7 @@ export function ArtifactDrawer() {onOpenChange={open => {if (!open) close()}}- modal={false}+ modal={true}><DrawerContent className="p-0 max-h-[90vh] md:hidden"><ArtifactPanel />diff --git a/components/artifact/artifact-panel.tsx b/components/artifact/artifact-panel.tsxindex b8d496fc..b66cfae8 100644--- a/components/artifact/artifact-panel.tsx+++ b/components/artifact/artifact-panel.tsx@@ -13,7 +13,7 @@ export function ArtifactPanel() {return (<div className="h-full flex flex-col overflow-hidden bg-muted md:px-4 md:py-14">- <div className="flex flex-col h-full bg-background rounded-xl md:border">+ <div className="flex flex-col h-full bg-background rounded-xl md:border overflow-hidden"><div className="flex items-center justify-between px-4 py-2"><h3 className="flex items-center gap-2"><div className="bg-muted p-2 rounded-md flex items-center gap-2">@@ -33,7 +33,7 @@ export function ArtifactPanel() {</Button></div><Separator className="my-1 bg-border/50" />- <div className="flex-1 overflow-y-auto p-4">+ <div data-vaul-no-drag className="flex-1 overflow-y-auto p-4"><ArtifactContent artifact={artifact} /></div></div>