fix responsive issue
Browse filesFiles changed (7)
51 unmodified lines5253545556575832 unmodified lines9192939495969751 unmodified linestitle: "DeepSite",statusBarStyle: "black-translucent",},themeColor: "#000000",icons: {icon: "/logo.svg",shortcut: "/logo.svg",32 unmodified linesreturn (<html lang="en"><bodyclassName={`${inter.variable} ${ptSans.variable} antialiased bg-black dark`}><Toaster richColors position="bottom-center" /><TanstackProvider>51 unmodified lines52535455565732 unmodified lines9091929394959651 unmodified linestitle: "DeepSite",statusBarStyle: "black-translucent",},icons: {icon: "/logo.svg",shortcut: "/logo.svg",32 unmodified linesreturn (<html lang="en"><bodyclassName={`${inter.variable} ${ptSans.variable} antialiased bg-black dark h-[100dvh] overflow-hidden`}><Toaster richColors position="bottom-center" /><TanstackProvider>
262 unmodified lines263264265266267268269262 unmodified linesreturn (<><div className="bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 absolute bottom-3 left-3 w-[calc(100%-20px)] group">{think && (<div className="w-full border-b border-neutral-700 relative overflow-hidden"><header262 unmodified lines263264265266267268269262 unmodified linesreturn (<><div className="bg-neutral-800 border border-neutral-700 rounded-2xl ring-[4px] focus-within:ring-neutral-500/30 focus-within:border-neutral-600 ring-transparent z-10 w-full group">{think && (<div className="w-full border-b border-neutral-700 relative overflow-hidden"><header
71 unmodified lines7273747576777818 unmodified lines97989910010110210310410510610721 unmodified lines12913013113213313413571 unmodified linesSave your Project</Button><Button variant="sky" size="sm" className="lg:hidden">Save</Button></div></PopoverTrigger>18 unmodified lines</div></div><p className="text-xl font-semibold text-neutral-950">Deploy your Project!</p><p className="text-sm text-neutral-500 mt-1.5">Deploy your project to a space on the Hub. Spaces are a way toshare your project with the world.</p></header><main className="space-y-4 p-6">21 unmodified linesclassName="relative w-full"disabled={loading}>Deploy <Rocket className="size-4" />{loading && (<Loading className="ml-2 size-4 animate-spin" />)}71 unmodified lines7273747576777818 unmodified lines97989910010110210310410510610721 unmodified lines12913013113213313413571 unmodified linesSave your Project</Button><Button variant="sky" size="sm" className="lg:hidden">Deploy</Button></div></PopoverTrigger>18 unmodified lines</div></div><p className="text-xl font-semibold text-neutral-950">Deploy as Space!</p><p className="text-sm text-neutral-500 mt-1.5">Save and Deploy your project to a Space on the Hub. Spaces area way to share your project with the world.</p></header><main className="space-y-4 p-6">21 unmodified linesclassName="relative w-full"disabled={loading}>Deploy Space <Rocket className="size-4" />{loading && (<Loading className="ml-2 size-4 animate-spin" />)}
29 unmodified lines3031323334353629 unmodified lineschildren?: ReactNode;}) {return (<header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 grid grid-cols-3 sticky top-0 z-20"><div className="flex items-center justify-start gap-3"><h1 className="text-neutral-900 dark:text-white text-lg lg:text-xl font-bold flex items-center justify-start"><Image29 unmodified lines3031323334353629 unmodified lineschildren?: ReactNode;}) {return (<header className="border-b bg-slate-200 border-slate-300 dark:bg-neutral-950 dark:border-neutral-800 px-3 lg:px-6 py-2 grid grid-cols-3 z-20"><div className="flex items-center justify-start gap-3"><h1 className="text-neutral-900 dark:text-white text-lg lg:text-xl font-bold flex items-center justify-start"><Image
165 unmodified lines1661671681691701711721 unmodified line1741751761771781791801811821835 unmodified lines189190191192193194195165 unmodified lines}, [currentTab]);return (<section className="h-screen bg-slate-100 dark:bg-neutral-950 flex flex-col"><Header tab={currentTab} onNewTab={setCurrentTab}>{project?._id ? (<SaveButton html={html} prompts={prompts} />1 unmodified line<DeployButton html={html} prompts={prompts} />)}</Header><main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full">{currentTab === "chat" && (<><div ref={editor} className="relative"><CopyIconclassName="size-4 absolute top-2 right-5 text-neutral-500 hover:text-neutral-300 z-2 cursor-pointer"onClick={() => {5 unmodified lineslanguage="html"theme="vs-dark"className={classNames("h-[calc(100dvh-98px)] lg:h-full bg-neutral-900 transition-all duration-200 ",{"pointer-events-none": isAiWorking,}165 unmodified lines1661671681691701711721 unmodified line1741751761771781791801811821831841851865 unmodified lines192193194195196197198165 unmodified lines}, [currentTab]);return (<section className="h-[100dvh] bg-neutral-950 flex flex-col"><Header tab={currentTab} onNewTab={setCurrentTab}>{project?._id ? (<SaveButton html={html} prompts={prompts} />1 unmodified line<DeployButton html={html} prompts={prompts} />)}</Header><main className="bg-neutral-950 flex-1 max-lg:flex-col flex w-full max-lg:h-[calc(100%-82px)] relative">{currentTab === "chat" && (<><divref={editor}className="bg-neutral-900 relative flex-1 overflow-hidden h-full flex flex-col gap-2 pb-3 px-3"><CopyIconclassName="size-4 absolute top-2 right-5 text-neutral-500 hover:text-neutral-300 z-2 cursor-pointer"onClick={() => {5 unmodified lineslanguage="html"theme="vs-dark"className={classNames("max-lg:h-[calc(100%-82px)] h-full bg-neutral-900 transition-all duration-200 absolute left-0 top-0",{"pointer-events-none": isAiWorking,}
28 unmodified lines29303132333417 unmodified lines5253545556575828 unmodified lines"w-full border-l border-gray-900 h-full relative z-0 flex items-center justify-center",{"lg:p-4": currentTab !== "preview",})}onClick={(e) => {17 unmodified linesref={iframeRef}title="output"className={classNames("w-full select-none transition-all duration-200 bg-black max-lg:h-full",{"pointer-events-none": isResizing || isAiWorking,"lg:max-w-md lg:mx-auto lg:h-[80dvh] lg:!rounded-[42px] lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl":28 unmodified lines293031323334353617 unmodified lines5455565758596028 unmodified lines"w-full border-l border-gray-900 h-full relative z-0 flex items-center justify-center",{"lg:p-4": currentTab !== "preview","max-lg:h-0": currentTab === "chat","max-lg:h-full": currentTab === "preview",})}onClick={(e) => {17 unmodified linesref={iframeRef}title="output"className={classNames("w-full select-none transition-all duration-200 bg-black",{"pointer-events-none": isResizing || isAiWorking,"lg:max-w-md lg:mx-auto lg:h-[80dvh] lg:!rounded-[42px] lg:border-[8px] lg:border-neutral-700 lg:shadow-2xl":
19 unmodified lines2021222324252619 unmodified lines<DropdownMenu><DropdownMenuTrigger asChild><Button variant="ghost" className={`${className}`}><Avatar className="size-7 mr-1"><AvatarImage src={user?.avatarUrl} alt="@shadcn" /><AvatarFallback className="text-sm">{user?.fullname?.charAt(0).toUpperCase() ?? "E"}19 unmodified lines2021222324252619 unmodified lines<DropdownMenu><DropdownMenuTrigger asChild><Button variant="ghost" className={`${className}`}><Avatar className="size-8 mr-1"><AvatarImage src={user?.avatarUrl} alt="@shadcn" /><AvatarFallback className="text-sm">{user?.fullname?.charAt(0).toUpperCase() ?? "E"}
app/layout.tsx+1-2
components/editor/ask-ai/index.tsx+1-1
components/editor/deploy-button/index.tsx+5-5
components/editor/header/index.tsx+1-1
components/editor/index.tsx+7-4
components/editor/preview/index.tsx+3-1
components/user-menu/index.tsx+1-1