An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: prevent iOS Safari viewport shift when keyboard dismisses (#808)
Yoshiki Miura7ee883a29e5f
diff --git a/app/layout.tsx b/app/layout.tsxindex 65a0b72e..01220ca5 100644--- a/app/layout.tsx+++ b/app/layout.tsx@@ -73,7 +73,7 @@ export default async function RootLayout({<html lang="en" suppressHydrationWarning><bodyclassName={cn(- 'min-h-screen flex flex-col font-sans antialiased overflow-hidden',+ 'fixed inset-0 flex flex-col font-sans antialiased overflow-hidden',fontSans.variable)}>diff --git a/components/artifact/chat-artifact-container.tsx b/components/artifact/chat-artifact-container.tsxindex a386356c..b9ce5dfd 100644--- a/components/artifact/chat-artifact-container.tsx+++ b/components/artifact/chat-artifact-container.tsx@@ -131,7 +131,7 @@ export function ChatArtifactContainer({}, [containerElement, isResizing])return (- <div className="flex-1 min-h-0 min-w-0 h-screen flex">+ <div className="flex-1 min-h-0 min-w-0 h-full flex"><div className="absolute p-4 z-50 transition-opacity duration-1000">{hasUser && (!open || isMobileSidebar) && (<SidebarTrigger className="animate-fade-in" />