Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Landmarks: one <main> per page; studio and tool pages no longer nest a second one

Claudee0c572dd520e
diff --git a/src/components/ads/ads-home.tsx b/src/components/ads/ads-home.tsx
index 820e2aff..96fcdbeb 100644
--- a/src/components/ads/ads-home.tsx
+++ b/src/components/ads/ads-home.tsx
@@ -101,7 +101,7 @@ export function AdsHome() {
return (
<div className="flex min-h-svh min-w-0 flex-col">
<MarketingHeader title="Ads Studio" active="ads" engine={engine} onEngine={setEngine} />
- <main className="mx-auto w-full min-w-0 max-w-[1240px] flex-1 px-3 pb-20 sm:px-6">
+ <div className="mx-auto w-full min-w-0 max-w-[1240px] flex-1 px-3 pb-20 sm:px-6">
<section className="mx-auto max-w-[720px] pt-8 text-center sm:pt-14">
<h2 className="font-heading text-display text-balance">Create performing static ads</h2>
<p className="mx-auto mt-2 max-w-lg text-[15px] text-muted-foreground">Enter your website. Your logo, colours, brand voice and selling points load on their own — then on-brand ads for every product, in 1:1, 4:5 and 9:16, with headlines and CTAs.</p>
@@ -160,7 +160,7 @@ export function AdsHome() {
<ArrowRight className="size-4 text-muted-foreground transition-transform group-hover:translate-x-0.5" />
</Link>
</section>
- </main>
+ </div>
<DeleteBrand brand={deleting} onClose={() => setDeleting(null)} />
</div>
);
diff --git a/src/components/ads/brand-workspace.tsx b/src/components/ads/brand-workspace.tsx
index 21a39878..0b6230df 100644
--- a/src/components/ads/brand-workspace.tsx
+++ b/src/components/ads/brand-workspace.tsx
@@ -99,7 +99,7 @@ export function BrandWorkspace({ brandId }: { brandId: string }) {
<StepFromUrl onStep={setStep} />
</Suspense>
<div className="mx-auto flex w-full min-w-0 max-w-[1440px] flex-1 gap-6 px-3 pt-5 pb-16 sm:px-6">
- <main className="min-w-0 flex-1">
+ <div className="min-w-0 flex-1">
<Link href="/ads" className="mb-4 inline-flex items-center gap-1 text-[13px] text-muted-foreground hover:text-foreground">
<ArrowLeft className="size-3.5" /> All brands
</Link>
@@ -175,7 +175,7 @@ export function BrandWorkspace({ brandId }: { brandId: string }) {
</div>
</>
)}
- </main>
+ </div>
{chatReady && <div className="sticky top-28 hidden h-[calc(100svh-8rem)] w-[340px] shrink-0 xl:block">{chatPanel(false)}</div>}
</div>
<Sheet open={chat} onOpenChange={setChat}>
diff --git a/src/components/ads/multiplier.tsx b/src/components/ads/multiplier.tsx
index e4169449..049273f4 100644
--- a/src/components/ads/multiplier.tsx
+++ b/src/components/ads/multiplier.tsx
@@ -299,7 +299,7 @@ export function AdMultiplier({ models }: { models: Record<string, ModelInfo> })
return (
<div className="flex min-h-svh min-w-0 flex-col">
<MarketingHeader title="Ad Multiplier" active="multiplier" engine={engine} onEngine={setEngine} />
- <main className="mx-auto w-full min-w-0 max-w-[1180px] flex-1 px-3 pt-6 pb-20 sm:px-6 sm:pt-10">
+ <div className="mx-auto w-full min-w-0 max-w-[1180px] flex-1 px-3 pt-6 pb-20 sm:px-6 sm:pt-10">
<div className="pb-6 text-center">
<h2 className="font-heading text-display text-balance">Turn one winning ad into many</h2>
<p className="mx-auto mt-2 max-w-xl text-[15px] text-muted-foreground">Upload an ad that works. Recreate it with new people, products or places — or keep it and try a new hook or call to action.</p>
@@ -481,7 +481,7 @@ export function AdMultiplier({ models }: { models: Record<string, ModelInfo> })
<p className="flex flex-wrap items-center justify-center gap-1.5 pt-6 text-center text-[12px] text-subtle-foreground">
<Sparkles className="size-3" /> Cloud: Seedance 2.5 edit (Higgsfield), Kling O3 edit, Gemini Omni Flash · Open source: Wan 2.2 Animate, Wan 2.2 clips joined around your ad
</p>
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/assist-view.tsx b/src/components/assist-view.tsx
index 0c3c7f16..83c829fb 100644
--- a/src/components/assist-view.tsx
+++ b/src/components/assist-view.tsx
@@ -174,7 +174,7 @@ export function AssistView() {
</header>
{!id ? (
- <main className="flex min-h-0 flex-1 flex-col items-center overflow-y-auto px-3 pt-[10vh] pb-16 sm:px-6 sm:pt-[14vh]">
+ <div className="flex min-h-0 flex-1 flex-col items-center overflow-y-auto px-3 pt-[10vh] pb-16 sm:px-6 sm:pt-[14vh]">
<div className="w-full max-w-[760px]">
<div className="mb-6 text-center">
<h2 className="font-heading text-display text-balance">What are we creating today?</h2>
@@ -202,10 +202,10 @@ export function AssistView() {
))}
</div>
</div>
- </main>
+ </div>
) : (
<>
- <main className="min-h-0 flex-1 overflow-y-auto px-3 sm:px-6">
+ <div className="min-h-0 flex-1 overflow-y-auto px-3 sm:px-6">
<div className="mx-auto w-full max-w-[760px] py-4">
{view.isError ? (
<div className="py-20 text-center">
@@ -221,7 +221,7 @@ export function AssistView() {
)}
<div ref={end} className="h-4" />
</div>
- </main>
+ </div>
<div className="shrink-0 px-3 pb-[max(1rem,env(safe-area-inset-bottom))] sm:px-6">
<div className="mx-auto w-full max-w-[760px]">
<AssistComposer
diff --git a/src/components/assist/memory-view.tsx b/src/components/assist/memory-view.tsx
index 99e1b2ad..1ded1e88 100644
--- a/src/components/assist/memory-view.tsx
+++ b/src/components/assist/memory-view.tsx
@@ -75,7 +75,7 @@ export function MemoryView({ projectId }: { projectId?: string } = {}) {
</div>
</header>
)}
- <main className={cn("w-full max-w-[900px] min-w-0 flex-1 px-3 pb-16 sm:px-6", projectId ? "pt-2" : "pt-4 md:pt-8")}>
+ <div className={cn("w-full max-w-[900px] min-w-0 flex-1 px-3 pb-16 sm:px-6", projectId ? "pt-2" : "pt-4 md:pt-8")}>
{!projectId && <p className="max-w-2xl text-[15px] text-pretty text-muted-foreground">Learning from every chat. Assist follows these in every reply, and saves new ones when you tell it something worth keeping{" "}— it asks first while Ask first is on.</p>}
{projectId && (
<div className="flex flex-wrap items-center justify-between gap-2">
@@ -164,7 +164,7 @@ export function MemoryView({ projectId }: { projectId?: string } = {}) {
</Empty>
)}
</div>
- </main>
+ </div>
<AddMemory open={adding} onOpenChange={setAdding} place={place} projects={projects.data ?? []} />
<ImportMemories open={importing} onOpenChange={setImporting} place={place} projects={projects.data ?? []} />
</div>
diff --git a/src/components/assist/project-view.tsx b/src/components/assist/project-view.tsx
index ce274e6e..86fab781 100644
--- a/src/components/assist/project-view.tsx
+++ b/src/components/assist/project-view.tsx
@@ -117,7 +117,7 @@ function Project({ p }: { p: AssistProject }) {
</DropdownMenu>
</div>
</header>
- <main className="mx-auto w-full max-w-[860px] min-w-0 flex-1 px-3 pb-16 sm:px-6">
+ <div className="mx-auto w-full max-w-[860px] min-w-0 flex-1 px-3 pb-16 sm:px-6">
<div className="mx-auto max-w-[760px] pt-[6vh] sm:pt-[9vh]">
<h2 className="text-center font-heading text-display text-balance">What are we creating in {p.name}?</h2>
<button onClick={() => setSettings(true)} className="mx-auto mt-2 block max-w-xl text-center text-[14px] text-pretty text-muted-foreground hover:text-foreground">
@@ -183,7 +183,7 @@ function Project({ p }: { p: AssistProject }) {
<MemoryView projectId={p.id} />
</TabsContent>
</Tabs>
- </main>
+ </div>
<ProjectDialog open={settings} onOpenChange={setSettings} project={p} />
<AlertDialog open={confirm} onOpenChange={setConfirm}>
<AlertDialogContent>
diff --git a/src/components/assist/skills-view.tsx b/src/components/assist/skills-view.tsx
index 850845bf..fcf89a51 100644
--- a/src/components/assist/skills-view.tsx
+++ b/src/components/assist/skills-view.tsx
@@ -112,7 +112,7 @@ function Skills() {
</Button>
</div>
</header>
- <main className="mx-auto w-full max-w-[1100px] min-w-0 flex-1 px-3 pt-4 pb-16 sm:px-6 md:pt-8">
+ <div className="mx-auto w-full max-w-[1100px] min-w-0 flex-1 px-3 pt-4 pb-16 sm:px-6 md:pt-8">
<p className="max-w-2xl text-[15px] text-pretty text-muted-foreground">
Playbooks Assist loads for whole kinds of jobs. Type <span className="rounded bg-muted px-1 font-mono text-[13px]">/name</span> at the start of a message to use one, or let Assist pick it. Skills also reach other agents through Fuobe&apos;s MCP server.
</p>
@@ -163,7 +163,7 @@ function Skills() {
/>
</TabsContent>
</Tabs>
- </main>
+ </div>
<SkillDetail name={viewing} onClose={() => open(null)} onEdit={(s) => (open(null), setEditing(s))} />
<SkillEditor
skill={editing}
diff --git a/src/components/cinema/workspace.tsx b/src/components/cinema/workspace.tsx
index a5337c1e..e109f6ae 100644
--- a/src/components/cinema/workspace.tsx
+++ b/src/components/cinema/workspace.tsx
@@ -412,7 +412,7 @@ function Workspace({ data, items, loading }: { data: ProjectView; items: CinemaG
<div className="flex min-h-0 flex-1">
<aside className="hidden w-60 shrink-0 border-r bg-sidebar/40 lg:block">{sidebar}</aside>
- <main
+ <div
className="relative flex min-w-0 flex-1 flex-col"
onDragOver={(e) => {
if (!e.dataTransfer.types.includes("Files")) return;
@@ -482,7 +482,7 @@ function Workspace({ data, items, loading }: { data: ProjectView; items: CinemaG
</p>
</div>
)}
- </main>
+ </div>
{xl && panel && <aside className="w-[380px] shrink-0 border-l bg-sidebar/40">{sidePanel}</aside>}
</div>
diff --git a/src/components/explainer/explainer-studio.tsx b/src/components/explainer/explainer-studio.tsx
index 4ae6344c..9e1e21c5 100644
--- a/src/components/explainer/explainer-studio.tsx
+++ b/src/components/explainer/explainer-studio.tsx
@@ -224,7 +224,7 @@ export function ExplainerStudio({ picker }: { picker: PickerData }) {
<EngineSwitch value={engine} onChange={setEngine} />
</div>
</header>
- <main className="mx-auto grid w-full max-w-[1240px] min-w-0 flex-1 gap-8 px-3 pt-6 pb-16 sm:px-6 lg:grid-cols-[minmax(0,520px)_minmax(0,1fr)]">
+ <div className="mx-auto grid w-full max-w-[1240px] min-w-0 flex-1 gap-8 px-3 pt-6 pb-16 sm:px-6 lg:grid-cols-[minmax(0,520px)_minmax(0,1fr)]">
<section aria-label="New explainer" className="min-w-0 lg:sticky lg:top-20 lg:self-start">
<div className="rounded-[20px] border bg-background p-3 shadow-soft transition-[border-color,box-shadow] focus-within:border-primary focus-within:ring-4 focus-within:ring-brand-faint sm:rounded-composer sm:p-4">
<p className="px-1 text-[11px] font-semibold tracking-[0.14em] text-muted-foreground uppercase">Fuobe Explainer</p>
@@ -414,7 +414,7 @@ export function ExplainerStudio({ picker }: { picker: PickerData }) {
</div>
)}
</section>
- </main>
+ </div>
<Sheet open={stylesOpen} onOpenChange={setStylesOpen}>
<SheetContent className="w-full overflow-y-auto sm:max-w-[640px]">
diff --git a/src/components/faceless/channel-view.tsx b/src/components/faceless/channel-view.tsx
index 60372580..d6063aa0 100644
--- a/src/components/faceless/channel-view.tsx
+++ b/src/components/faceless/channel-view.tsx
@@ -143,7 +143,7 @@ export function ChannelView({ id, picker }: { id: string; picker: PickerData })
<ArrowLeft className="size-4 shrink-0" /> <span className="truncate">Faceless Studio</span>
</Link>
</header>
- <main className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 space-y-8 px-3 pb-16 sm:px-6">
+ <div className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 space-y-8 px-3 pb-16 sm:px-6">
{isLoading || !channel ? (
<div className="space-y-4 pt-6">
<div className="flex items-center gap-4">
@@ -319,7 +319,7 @@ export function ChannelView({ id, picker }: { id: string; picker: PickerData })
</AlertDialog>
</>
)}
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/faceless/episode-view.tsx b/src/components/faceless/episode-view.tsx
index b50d0855..a75a7707 100644
--- a/src/components/faceless/episode-view.tsx
+++ b/src/components/faceless/episode-view.tsx
@@ -536,7 +536,7 @@ export function EpisodeView({ id, backHref, backLabel }: { id: string; backHref:
</div>
)}
</header>
- <main className="mx-auto w-full max-w-[1100px] min-w-0 flex-1 space-y-6 px-3 pb-16 sm:px-6">
+ <div className="mx-auto w-full max-w-[1100px] min-w-0 flex-1 space-y-6 px-3 pb-16 sm:px-6">
{isLoading || !view || !ep ? (
<div className="space-y-4 pt-6">
<Skeleton className="h-8 w-96 max-w-full" />
@@ -616,7 +616,7 @@ export function EpisodeView({ id, backHref, backLabel }: { id: string; backHref:
)}
</>
)}
- </main>
+ </div>
{open && <Viewer generation={open} index={0} onClose={() => setOpen(null)} />}
<AlertDialog open={confirm} onOpenChange={setConfirm}>
<AlertDialogContent>
diff --git a/src/components/faceless/episode-wizard.tsx b/src/components/faceless/episode-wizard.tsx
index e4e641ff..765e3c0b 100644
--- a/src/components/faceless/episode-wizard.tsx
+++ b/src/components/faceless/episode-wizard.tsx
@@ -173,7 +173,7 @@ export function EpisodeWizard({ channelId, picker }: { channelId: string; picker
<EngineSwitch value={engine} onChange={setEngine} />
</div>
</header>
- <main className="mx-auto w-full max-w-[920px] min-w-0 flex-1 px-3 pb-32 sm:px-6">
+ <div className="mx-auto w-full max-w-[920px] min-w-0 flex-1 px-3 pb-32 sm:px-6">
<div className="flex flex-wrap items-center justify-between gap-3 pt-6">
<Steps step={step} />
</div>
@@ -338,7 +338,7 @@ export function EpisodeWizard({ channelId, picker }: { channelId: string; picker
</div>
</div>
)}
- </main>
+ </div>
{channel && settings && (
<div className="sticky bottom-0 z-20 border-t bg-background/90 pb-[max(0.75rem,env(safe-area-inset-bottom))] backdrop-blur">
diff --git a/src/components/faceless/faceless-home.tsx b/src/components/faceless/faceless-home.tsx
index 16441a5f..6bfb3ca5 100644
--- a/src/components/faceless/faceless-home.tsx
+++ b/src/components/faceless/faceless-home.tsx
@@ -73,7 +73,7 @@ export function FacelessHome() {
<EngineSwitch value={engine} onChange={setEngine} />
</div>
</header>
- <main className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 space-y-12 px-3 pb-16 sm:px-6">
+ <div className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 space-y-12 px-3 pb-16 sm:px-6">
<div className="mx-auto max-w-[760px] pt-[6vh] text-center sm:pt-[9vh]">
<h2 className="font-heading text-display text-balance">Create your Faceless channel</h2>
<p className="mx-auto mt-2 max-w-[560px] text-body text-muted-foreground">A narrated, illustrated show — scripts, voice-over, animation, music and subtitles — with the same look in every episode.</p>
@@ -225,7 +225,7 @@ export function FacelessHome() {
</div>
))}
</section>
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/layers/layers-editor.tsx b/src/components/layers/layers-editor.tsx
index 27ce60bb..89da6da6 100644
--- a/src/components/layers/layers-editor.tsx
+++ b/src/components/layers/layers-editor.tsx
@@ -695,7 +695,7 @@ function Editor({ view, refetch, models }: { view: LayerProjectView; refetch: ()
/>
<div className="flex min-h-0 flex-1">
<ToolRail />
- <main className="relative flex min-w-0 flex-1 flex-col">
+ <div className="relative flex min-w-0 flex-1 flex-col">
{compare ? (
<div className="checkerboard grid min-h-0 flex-1 place-items-center overflow-hidden p-6">
{pair ? <CompareSlider before={pair.before} after={pair.after} alt="Your layers" /> : <Loader2 className="size-5 animate-spin text-muted-foreground" />}
@@ -735,7 +735,7 @@ function Editor({ view, refetch, models }: { view: LayerProjectView; refetch: ()
</Button>
</div>
)}
- </main>
+ </div>
<LayersPanel />
</div>
</div>
diff --git a/src/components/layers/mobile-view.tsx b/src/components/layers/mobile-view.tsx
index 0537a656..4f06fb8c 100644
--- a/src/components/layers/mobile-view.tsx
+++ b/src/components/layers/mobile-view.tsx
@@ -71,7 +71,7 @@ export function MobileView({
<h1 className="min-w-0 flex-1 truncate font-heading text-[20px]">{project.name}</h1>
<DownloadMenu doc={doc} name={project.name} jobs={jobs} compact />
</header>
- <main className="mx-auto w-full max-w-xl flex-1 space-y-5 px-4 pb-12">
+ <div className="mx-auto w-full max-w-xl flex-1 space-y-5 px-4 pb-12">
{!decomposed && !running && !failed ? (
<div className="space-y-3 rounded-xl border bg-card p-4">
<div className="flex items-start gap-3">
@@ -165,7 +165,7 @@ export function MobileView({
))}
</ul>
</section>
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/marketing/click-to-ad.tsx b/src/components/marketing/click-to-ad.tsx
index 9462dff7..e9f8f9ea 100644
--- a/src/components/marketing/click-to-ad.tsx
+++ b/src/components/marketing/click-to-ad.tsx
@@ -206,7 +206,7 @@ export function ClickToAd({ models }: { models: Record<string, ModelInfo> }) {
return (
<div className="flex min-h-svh min-w-0 flex-col">
<MarketingHeader title="Click to Ad" active="click" engine={engine} onEngine={setEngine} />
- <main className="mx-auto w-full min-w-0 max-w-[980px] flex-1 space-y-5 px-3 pt-6 pb-20 sm:px-6 sm:pt-10">
+ <div className="mx-auto w-full min-w-0 max-w-[980px] flex-1 space-y-5 px-3 pt-6 pb-20 sm:px-6 sm:pt-10">
<div className="pb-2 text-center">
<h2 className="font-heading text-display text-balance">Make a video ad in one click</h2>
<p className="mx-auto mt-2 max-w-xl text-[15px] text-muted-foreground">Drop a product link, get a 9:16 ad with voiceover and captions — ready for TikTok, Reels and Shorts. No filming, no editing, no brief.</p>
@@ -389,7 +389,7 @@ export function ClickToAd({ models }: { models: Record<string, ModelInfo> }) {
<p className="flex items-center justify-center gap-1.5 pt-4 text-[12px] text-subtle-foreground">
<Sparkles className="size-3" /> Cloud: Seedance 2.5 shots or an OmniHuman presenter, ElevenLabs voice, Auto Subtitle · Open source: Wan 2.2, InfiniteTalk, Chatterbox (your voice sample), caption burn-in
</p>
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/marketing/marketing-studio.tsx b/src/components/marketing/marketing-studio.tsx
index a7b52012..ab03da49 100644
--- a/src/components/marketing/marketing-studio.tsx
+++ b/src/components/marketing/marketing-studio.tsx
@@ -357,7 +357,7 @@ export function MarketingStudio({ models }: { models: Record<string, ModelInfo>
<Suspense fallback={null}>
<UrlParams onTemplate={pickTemplate} onTab={setTab} />
</Suspense>
- <main className="mx-auto w-full min-w-0 max-w-[1240px] flex-1 px-3 pb-10 sm:px-6">
+ <div className="mx-auto w-full min-w-0 max-w-[1240px] flex-1 px-3 pb-10 sm:px-6">
<div className="pt-6 pb-2 text-center sm:pt-10">
<h2 className="font-heading text-display text-balance">Turn a product into ready-to-post content</h2>
<p className="mx-auto mt-2 max-w-xl text-[15px] text-muted-foreground">
@@ -400,7 +400,7 @@ export function MarketingStudio({ models }: { models: Record<string, ModelInfo>
/>
)}
</div>
- </main>
+ </div>
{/* Docked composer */}
<div className="sticky bottom-0 z-20 bg-gradient-to-t from-background via-background/95 to-transparent px-3 pt-8 pb-[max(0.75rem,env(safe-area-inset-bottom))] sm:px-6">
diff --git a/src/components/mixed-media/mixed-studio.tsx b/src/components/mixed-media/mixed-studio.tsx
index cf8d352a..0ae9eddd 100644
--- a/src/components/mixed-media/mixed-studio.tsx
+++ b/src/components/mixed-media/mixed-studio.tsx
@@ -91,7 +91,7 @@ export function MixedStudio({ models }: { models: Record<Engine, RestyleModelInf
<EngineSwitch value={engine} onChange={setEngine} />
</div>
</header>
- <main className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 px-3 pb-28 sm:px-6 lg:pb-16">
+ <div className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 px-3 pb-28 sm:px-6 lg:pb-16">
{tab === "history" ? (
<MixedHistory onStart={() => pick("presets")} />
) : tab === "how" ? (
@@ -108,7 +108,7 @@ export function MixedStudio({ models }: { models: Record<Engine, RestyleModelInf
<Workspace engine={engine} models={models[engine]} />
</>
)}
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/shorts/session-view.tsx b/src/components/shorts/session-view.tsx
index d9624b15..4c44f5d4 100644
--- a/src/components/shorts/session-view.tsx
+++ b/src/components/shorts/session-view.tsx
@@ -86,7 +86,7 @@ function Frame({ title, children, actions }: { title: string; children: React.Re
<h1 className="min-w-0 truncate font-heading text-[22px] leading-none">{title}</h1>
<div className="ml-auto flex items-center gap-1">{actions}</div>
</header>
- <main className="mx-auto w-full max-w-[1180px] min-w-0 flex-1 px-3 pb-16 sm:px-6">{children}</main>
+ <div className="mx-auto w-full max-w-[1180px] min-w-0 flex-1 px-3 pb-16 sm:px-6">{children}</div>
</div>
);
}
diff --git a/src/components/shorts/shorts-studio.tsx b/src/components/shorts/shorts-studio.tsx
index 86a226b9..e058d88c 100644
--- a/src/components/shorts/shorts-studio.tsx
+++ b/src/components/shorts/shorts-studio.tsx
@@ -92,7 +92,7 @@ export function ShortsStudio({ models }: { models: Record<Engine, ModelChoice[]>
<EngineSwitch value={engine} onChange={setEngine} />
</div>
</header>
- <main className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 px-3 pb-28 sm:px-6 lg:pb-16">
+ <div className="mx-auto w-full max-w-[1240px] min-w-0 flex-1 px-3 pb-28 sm:px-6 lg:pb-16">
{tab === "history" ? (
<ShortsHistory onStart={() => pickTab("presets")} />
) : (
@@ -116,7 +116,7 @@ export function ShortsStudio({ models }: { models: Record<Engine, ModelChoice[]>
/>
</>
)}
- </main>
+ </div>
</div>
);
}
diff --git a/src/components/studio/studio-page.tsx b/src/components/studio/studio-page.tsx
index 065976ff..d42741ce 100644
--- a/src/components/studio/studio-page.tsx
+++ b/src/components/studio/studio-page.tsx
@@ -243,7 +243,7 @@ function StudioBody({ header, tabs }: { header?: React.ReactNode; tabs?: React.R
>
<StudioHeader title={config.title} header={header} tabs={tabs} />
- <main className={cn("mx-auto w-full max-w-[1240px] min-w-0 px-3 sm:px-6", hasItems && "flex-1 pb-8")}>
+ <div className={cn("mx-auto w-full max-w-[1240px] min-w-0 px-3 sm:px-6", hasItems && "flex-1 pb-8")}>
{hasItems ? (
<div className="pt-4">
<Feed items={items} onReuse={reuse} />
@@ -254,7 +254,7 @@ function StudioBody({ header, tabs }: { header?: React.ReactNode; tabs?: React.R
{config.subtitle && <p className="mt-2 max-w-xl text-[13px] text-muted-foreground">{config.subtitle}</p>}
</div>
)}
- </main>
+ </div>
{/* One composer for both layouts (centred under the hero, docked under the feed), so it keeps focus and state when the first result arrives. */}
<div
diff --git a/tests/shell-logic.test.ts b/tests/shell-logic.test.ts
index 15db4fa8..d5148faa 100644
--- a/tests/shell-logic.test.ts
+++ b/tests/shell-logic.test.ts
@@ -1,3 +1,5 @@
+import fs from "node:fs";
+import path from "node:path";
import { afterEach, describe, expect, it, vi } from "vitest";
import { EFFECTS, MOTIONS } from "@/lib/catalog";
import { copyText, copyWithToast } from "@/lib/clipboard";
@@ -339,3 +341,17 @@ describe("copyText", () => {
expect(toasts.error.at(-1)).toMatch(/select the text/);
});
});
+
+describe("landmarks", () => {
+ it("leaves one <main> per page: the app frame's inset sheet", () => {
+ // Pages render inside StudioChrome, whose SidebarInset is the <main>; a second one inside it
+ // would give screen readers two main landmarks.
+ const files = (dir: string): string[] =>
+ fs.readdirSync(dir, { withFileTypes: true }).flatMap((e) => (e.isDirectory() ? files(path.join(dir, e.name)) : e.name.endsWith(".tsx") ? [path.join(dir, e.name)] : []));
+ const root = path.resolve(__dirname, "../src");
+ const mains = [...files(path.join(root, "components")), ...files(path.join(root, "app/(studio)"))]
+ .filter((f) => /<main[\s>]/.test(fs.readFileSync(f, "utf8")))
+ .map((f) => path.relative(root, f));
+ expect(mains).toEqual(["components/ui/sidebar.tsx"]);
+ });
+});