auto-save 2026-05-17 11:23 (~3)

This commit is contained in:
2026-05-17 11:23:22 +08:00
parent 2e19f4b108
commit 201abc60d1
3 changed files with 565 additions and 330 deletions

View File

@@ -1007,40 +1007,11 @@ export default function Home() {
<div className="canvas-bg" />
<main className="relative flex h-screen w-screen overflow-hidden">
<AdRecreationBoard data={nodeData} onGenerateVideo={handleQuickGenerateVideo} />
{/* 右区:暂时清空,只保留无限画布能力,后续再定义要承载的内容。 */}
<section className="relative flex min-h-0 flex-1 flex-col">
<div className="absolute z-30 pointer-events-auto" style={{ bottom: 112, left: 12 }}>
<ThemeToggle />
</div>
<div className="relative flex-1 min-h-0">
{clientReady ? (
<ReactFlow
nodes={[]}
edges={[]}
onInit={(instance) => { flowRef.current = instance }}
colorMode={resolvedTheme === "light" ? "light" : "dark"}
fitView
fitViewOptions={{ padding: 0.12 }}
minZoom={0.2}
maxZoom={1.5}
nodesDraggable={false}
nodesConnectable={false}
elementsSelectable={false}
proOptions={{ hideAttribution: true }}
>
<Background variant={BackgroundVariant.Dots} gap={28} size={1.4} />
<Controls position="bottom-left" />
</ReactFlow>
) : (
<div className="h-full w-full" suppressHydrationWarning />
)}
</div>
{clientReady && <AudioStrip job={audioStripJob} open={!!audioStripJob} onClose={() => setAudioStripJobId(null)} />}
</section>
<div className="absolute right-4 top-4 z-30 pointer-events-auto">
<ThemeToggle />
</div>
{clientReady && <AudioStrip job={audioStripJob} open={!!audioStripJob} onClose={() => setAudioStripJobId(null)} />}
<Toaster theme="system" position="top-center" />
</main>
</>
)