中文版 AI 姿势参考图库 · 1439 组 / 2878 张图片 / 完整汉化 · 零依赖静态画廊
fix(ui): 修复窄屏和短横屏布局边界
H-Bole446f950c629d
diff --git a/src/components/common/FormSection.tsx b/src/components/common/FormSection.tsxindex f7b3939..9d011f2 100644--- a/src/components/common/FormSection.tsx+++ b/src/components/common/FormSection.tsx@@ -4,15 +4,15 @@ import { cn } from '@/lib/utils'// 设置页的分组卡片export function Section({ title, desc, actions, children, className }: { title: string; desc?: string; actions?: ReactNode; children: ReactNode; className?: string }) {return (- <section className="rounded-[22px] bg-muted p-4 sm:p-6">- <div className="flex items-start justify-between gap-3">- <div>+ <section className="@container/section min-w-0 rounded-[22px] bg-muted p-4 sm:p-6">+ <div className="flex flex-wrap items-start justify-between gap-3">+ <div className="min-w-0 [overflow-wrap:anywhere]"><h2 className="text-base font-semibold">{title}</h2>{desc && <p className="mt-1 text-sm text-muted-foreground">{desc}</p>}</div>- {actions}+ {actions && <div className="flex max-w-full flex-wrap items-center gap-1.5 [&>div]:flex-wrap">{actions}</div>}</div>- <div className={cn('mt-4 grid gap-4 md:grid-cols-2', className)}>{children}</div>+ <div className={cn('mt-4 grid min-w-0 gap-4 @lg/section:grid-cols-2', className)}>{children}</div></section>)}@@ -21,14 +21,14 @@ export function Section({ title, desc, actions, children, className }: { title:export function Field({ label, htmlFor, hint, badge, children }: { label: string; htmlFor?: string; hint?: string; badge?: ReactNode; children: ReactNode }) {return (<div className="grid min-w-0 content-start gap-2">- <div className="flex h-5 items-center gap-2">- <label htmlFor={htmlFor} className="text-sm leading-none font-medium select-none">+ <div className="flex min-h-5 flex-wrap items-center gap-2">+ <label htmlFor={htmlFor} className="text-sm leading-snug font-medium select-none [overflow-wrap:anywhere]">{label}</label>{badge}</div><div className="min-w-0 [&_button[role=combobox]]:min-w-0 [&_button[role=combobox]]:bg-background [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:overflow-hidden [&_input]:bg-background">{children}</div>- {hint && <p className="text-xs text-muted-foreground">{hint}</p>}+ {hint && <p className="text-xs text-muted-foreground [overflow-wrap:anywhere]">{hint}</p>}</div>)}diff --git a/src/components/common/PageHeader.tsx b/src/components/common/PageHeader.tsxindex 36a915d..71cebcb 100644--- a/src/components/common/PageHeader.tsx+++ b/src/components/common/PageHeader.tsx@@ -7,7 +7,7 @@ export function PageHeader({ title, description, actions }: { title: string; des<h1 className="truncate text-lg font-bold tracking-tight sm:text-2xl">{title}</h1>{description && <p className="mt-0.5 text-xs text-muted-foreground sm:text-sm">{description}</p>}</div>- {actions && <div className="flex shrink-0 items-center gap-1.5 sm:gap-2">{actions}</div>}+ {actions && <div className="flex min-w-0 max-w-full flex-wrap items-center gap-1.5 sm:gap-2">{actions}</div>}</div>)}diff --git a/src/components/layout/AppHeader.tsx b/src/components/layout/AppHeader.tsxindex 1f1e99c..5684acc 100644--- a/src/components/layout/AppHeader.tsx+++ b/src/components/layout/AppHeader.tsx@@ -41,17 +41,17 @@ export function AppHeader() {}return (- <header className="flex h-14 shrink-0 items-center gap-2 border-b border-border/60 px-4">+ <header className="@container/header flex min-h-14 shrink-0 items-center gap-2 border-b border-border/60 px-4"><SidebarTrigger className="-ml-1" /><Separator orientation="vertical" className="mr-2 h-4 data-vertical:self-center" />- <Breadcrumb>- <BreadcrumbList>+ <Breadcrumb className="min-w-0 flex-1">+ <BreadcrumbList className="flex-nowrap">{crumbs.map((c, i) => (<Fragment key={c.path}>{i > 0 && <BreadcrumbSeparator />}- <BreadcrumbItem>+ <BreadcrumbItem className="min-w-0">{i === crumbs.length - 1 ? (- <BreadcrumbPage>{c.title}</BreadcrumbPage>+ <BreadcrumbPage className="truncate">{c.title}</BreadcrumbPage>) : (<BreadcrumbLink asChild><Link to={c.path}>{c.title}</Link>@@ -63,7 +63,7 @@ export function AppHeader() {</BreadcrumbList></Breadcrumb>- <div className="ml-auto flex items-center gap-2">+ <div className="ml-auto flex shrink-0 items-center gap-1 @lg/header:gap-2"><Buttonvariant={safeMode ? 'outline' : 'secondary'}size="sm"@@ -76,17 +76,17 @@ export function AppHeader() {}><ShieldCheckIcon className="size-3.5" />- <span className="hidden sm:inline">{safeMode ? '安全模式 (SFW)' : '18+ 完整模式'}</span>- <span className="sm:hidden">{safeMode ? 'SFW' : '18+'}</span>+ <span className="hidden @2xl/header:inline">{safeMode ? '安全模式 (SFW)' : '18+ 完整模式'}</span>+ <span className="@2xl/header:hidden">{safeMode ? 'SFW' : '18+'}</span></Button>- <Button variant="outline" size="sm" onClick={handleRandom} className="hidden sm:inline-flex">+ <Button variant="outline" size="sm" onClick={handleRandom} className="hidden @3xl/header:inline-flex"><DicesIcon className="size-3.5" />随机捏人</Button><Button size="sm" asChild>- <Link to="/studio">+ <Link to="/studio" aria-label={`AI 合成台,已选 ${selectedCount} 项参考图`}><SparklesIcon className="size-3.5" />- AI 合成台+ <span className="hidden @lg/header:inline">AI 合成台</span>{selectedCount > 0 && (<span className="ml-1 rounded-full bg-primary-foreground/20 px-1.5 py-0.2 text-[11px] font-bold">{selectedCount}/3diff --git a/src/components/layout/RecipeDock.tsx b/src/components/layout/RecipeDock.tsxindex 183b54c..002607c 100644--- a/src/components/layout/RecipeDock.tsx+++ b/src/components/layout/RecipeDock.tsx@@ -42,11 +42,11 @@ export function RecipeDock() {}return (- <div className="sticky bottom-3 z-30 mx-auto mt-4 w-full max-w-5xl">- <div className="flex flex-col gap-2 rounded-2xl border border-border/80 bg-card/95 p-2 shadow-lg backdrop-blur-md sm:flex-row sm:items-center sm:justify-between sm:px-3.5 sm:py-2.5">- <div className="grid flex-1 grid-cols-3 gap-1.5 sm:gap-2">+ <div className="sticky bottom-[max(0.75rem,env(safe-area-inset-bottom))] z-30 mx-auto mt-4 w-full max-w-5xl [@media(max-height:30rem)]:static">+ <div className="flex flex-col gap-2 rounded-2xl border border-border/80 bg-card/95 p-2 shadow-lg backdrop-blur-md @3xl/main:flex-row @3xl/main:items-center @3xl/main:justify-between sm:px-3.5 sm:py-2.5">+ <div className="grid min-w-0 max-w-full flex-1 grid-cols-3 gap-1.5 sm:gap-2">{/* Slot 1: Portrait */}- <div className="relative flex items-center gap-1.5 rounded-xl bg-muted/80 p-1.5 sm:gap-2 sm:p-2">+ <div className="relative flex min-w-0 flex-col items-start gap-1.5 rounded-xl bg-muted/80 p-1.5 @md/main:flex-row @md/main:items-center sm:gap-2 sm:p-2">{recipe.portrait ? (<><img@@ -54,19 +54,20 @@ export function RecipeDock() {alt={recipe.portrait.标题}className="h-8 w-7 shrink-0 rounded-md object-cover sm:h-10 sm:w-8"/>- <div className="min-w-0 flex-1">+ <div className="min-w-0 max-w-full flex-1"><div className="truncate text-[11px] font-medium sm:text-xs">{recipe.portrait.发型名称}</div></div><buttontype="button"+ aria-label="清除人像参考图"onClick={() => setPortrait(null)}- className="rounded-full p-0.5 text-muted-foreground hover:text-foreground"+ className="absolute top-1 right-1 shrink-0 rounded-full p-0.5 text-muted-foreground hover:text-foreground @md/main:static"><XIcon className="size-3" /></button></>) : (- <Link to="/portraits" className="flex flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground">+ <Link to="/portraits" className="flex min-w-0 max-w-full flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground"><div className="flex h-8 w-7 shrink-0 items-center justify-center rounded-md bg-background/80 sm:h-10 sm:w-8"><UserRoundIcon className="size-3.5" /></div>@@ -76,7 +77,7 @@ export function RecipeDock() {</div>{/* Slot 2: Costume */}- <div className="relative flex items-center gap-1.5 rounded-xl bg-muted/80 p-1.5 sm:gap-2 sm:p-2">+ <div className="relative flex min-w-0 flex-col items-start gap-1.5 rounded-xl bg-muted/80 p-1.5 @md/main:flex-row @md/main:items-center sm:gap-2 sm:p-2">{recipe.costume ? (<><img@@ -84,19 +85,20 @@ export function RecipeDock() {alt={recipe.costume.服装名称}className="h-8 w-7 shrink-0 rounded-md object-cover sm:h-10 sm:w-8"/>- <div className="min-w-0 flex-1">+ <div className="min-w-0 max-w-full flex-1"><div className="truncate text-[11px] font-medium sm:text-xs">{recipe.costume.服装名称}</div></div><buttontype="button"+ aria-label="清除服装参考图"onClick={() => setCostume(null)}- className="rounded-full p-0.5 text-muted-foreground hover:text-foreground"+ className="absolute top-1 right-1 shrink-0 rounded-full p-0.5 text-muted-foreground hover:text-foreground @md/main:static"><XIcon className="size-3" /></button></>) : (- <Link to="/costumes" className="flex flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground">+ <Link to="/costumes" className="flex min-w-0 max-w-full flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground"><div className="flex h-8 w-7 shrink-0 items-center justify-center rounded-md bg-background/80 sm:h-10 sm:w-8"><ShirtIcon className="size-3.5" /></div>@@ -106,7 +108,7 @@ export function RecipeDock() {</div>{/* Slot 3: Pose */}- <div className="relative flex items-center gap-1.5 rounded-xl bg-muted/80 p-1.5 sm:gap-2 sm:p-2">+ <div className="relative flex min-w-0 flex-col items-start gap-1.5 rounded-xl bg-muted/80 p-1.5 @md/main:flex-row @md/main:items-center sm:gap-2 sm:p-2">{recipe.pose ? (<><img@@ -114,7 +116,7 @@ export function RecipeDock() {alt={recipe.pose.姿势名称}className="h-8 w-7 shrink-0 rounded-md object-cover sm:h-10 sm:w-8"/>- <div className="min-w-0 flex-1">+ <div className="min-w-0 max-w-full flex-1"><div className="truncate text-[11px] font-medium sm:text-xs" title={recipe.pose.姿势名称}>{recipe.pose.姿势名称}</div>{recipe.pose.source !== 'upload' && (<button@@ -130,14 +132,15 @@ export function RecipeDock() {</div><buttontype="button"+ aria-label="清除姿势参考图"onClick={() => setPose(null)}- className="rounded-full p-0.5 text-muted-foreground hover:text-foreground"+ className="absolute top-1 right-1 shrink-0 rounded-full p-0.5 text-muted-foreground hover:text-foreground @md/main:static"><XIcon className="size-3" /></button></>) : (- <Link to="/poses" className="flex flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground">+ <Link to="/poses" className="flex min-w-0 max-w-full flex-1 items-center gap-1.5 text-muted-foreground hover:text-foreground"><div className="flex h-8 w-7 shrink-0 items-center justify-center rounded-md bg-background/80 sm:h-10 sm:w-8"><PersonStandingIcon className="size-3.5" /></div>@@ -147,18 +150,18 @@ export function RecipeDock() {</div></div>- <div className="flex items-center justify-end gap-1.5">+ <div className="flex flex-wrap items-center justify-end gap-1.5"><Button variant="outline" size="sm" className="h-8 px-2.5 text-xs" onClick={handleRandom}><DicesIcon className="size-3.5" />随机</Button>{count > 0 && (<>- <Button variant="outline" size="sm" className="h-8 px-2.5 text-xs" onClick={handleCopyPrompt}>+ <Button variant="outline" size="sm" className="h-8 px-2.5 text-xs" aria-label="复制提示词" onClick={handleCopyPrompt}><CopyIcon className="size-3.5" /><span className="hidden md:inline">复制词</span></Button>- <Button variant="ghost" size="icon" className="size-8" onClick={clearRecipe}>+ <Button variant="ghost" size="icon" className="size-8" aria-label="清空参考图" onClick={clearRecipe}><Trash2Icon className="size-3.5" /></Button></>diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsxindex 6418255..d098017 100644--- a/src/components/ui/sidebar.tsx+++ b/src/components/ui/sidebar.tsx@@ -306,7 +306,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {<maindata-slot="sidebar-inset"className={cn(- "relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",+ "relative flex min-w-0 w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",className)}{...props}diff --git a/src/routes/__root.tsx b/src/routes/__root.tsxindex 096de74..e7959ae 100644--- a/src/routes/__root.tsx+++ b/src/routes/__root.tsx@@ -18,8 +18,8 @@ function RootLayout() {<AppSidebar /><SidebarInset><AppHeader />- <main className="@container/main flex flex-1 flex-col px-4 pt-4 pb-10 sm:px-6 md:px-8">- <div className="mx-auto flex w-full max-w-7xl flex-1 flex-col gap-4 md:gap-6">+ <main className="@container/main flex min-w-0 flex-1 flex-col px-4 pt-4 pb-10 sm:px-6 md:px-8">+ <div className="mx-auto flex min-w-0 w-full max-w-7xl flex-1 flex-col gap-4 md:gap-6"><Outlet /></div><RecipeDock />diff --git a/src/routes/costumes.tsx b/src/routes/costumes.tsxindex 6c8b07f..9ce12e3 100644--- a/src/routes/costumes.tsx+++ b/src/routes/costumes.tsx@@ -145,7 +145,7 @@ function CostumesPage() {</div>{/* 搜索与单品筛选栏 */}- <div className="grid gap-3 rounded-[22px] bg-muted p-4 md:grid-cols-[1fr_220px_auto]">+ <div className="grid gap-3 rounded-[22px] bg-muted p-4 @xl/main:grid-cols-2 @3xl/main:grid-cols-[minmax(0,1fr)_220px_auto]"><div className="relative"><SearchIcon className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" /><Input@@ -269,16 +269,16 @@ function CostumesPage() {{/* 服装详情弹窗 */}<Dialog open={viewerIndex !== null} onOpenChange={(o) => !o && setViewerIndex(null)}>- <DialogContent className="max-h-[90vh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">+ <DialogContent className="max-h-[90dvh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">{currentItem && viewerIndex !== null && (() => {const picked = recipe.costume?.id === currentItem.idreturn (<div className="grid md:grid-cols-[1fr_320px]">- <div className="relative flex max-h-[78vh] min-h-[380px] items-center justify-center bg-muted/60 p-4">+ <div className="relative flex max-h-[78dvh] min-h-[min(380px,65dvh)] items-center justify-center bg-muted/60 p-4"><imgsrc={`/${currentItem.预览图 || currentItem.原图}`}alt={currentItem.服装名称}- className="max-h-[72vh] w-auto rounded-lg object-contain"+ className="max-h-[72dvh] w-auto rounded-lg object-contain"/><Buttonvariant="secondary"diff --git a/src/routes/guide.tsx b/src/routes/guide.tsxindex e478071..cc1ebeb 100644--- a/src/routes/guide.tsx+++ b/src/routes/guide.tsx@@ -13,7 +13,7 @@ function GuidePage() {<><PageHeader title="使用指南与免责声明" />- <Section title="角色合成流程" className="md:grid-cols-3">+ <Section title="角色合成流程" className="@lg/section:grid-cols-3"><div className="rounded-2xl bg-background p-4"><Badge>1. 人像</Badge><h3 className="mt-2 text-sm font-semibold">人像颜值库 (1,499)</h3>@@ -39,7 +39,7 @@ function GuidePage() {</div></Section>- <Section title="免责声明与合规使用规范(必读)" className="md:grid-cols-1">+ <Section title="免责声明与合规使用规范(必读)" className="@lg/section:grid-cols-1"><div className="space-y-2.5 rounded-2xl bg-background p-4 text-xs leading-relaxed text-muted-foreground"><p><strong className="text-foreground">1. 仅供学习与合法艺术创作(严禁违法):</strong>@@ -60,7 +60,7 @@ function GuidePage() {</div></Section>- <Section title="数据来源与版权说明" className="md:grid-cols-1">+ <Section title="数据来源与版权说明" className="@lg/section:grid-cols-1"><div className="space-y-2.5 rounded-2xl bg-background p-4 text-xs leading-relaxed text-muted-foreground"><p><strong className="text-foreground">• 原作者版权归属:</strong>diff --git a/src/routes/portraits.tsx b/src/routes/portraits.tsxindex d364218..3b91414 100644--- a/src/routes/portraits.tsx+++ b/src/routes/portraits.tsx@@ -163,7 +163,7 @@ function PortraitsPage() {</div>{/* 搜索与发型细分 */}- <div className="grid gap-3 rounded-[22px] bg-muted p-4 md:grid-cols-[1fr_260px_auto]">+ <div className="grid gap-3 rounded-[22px] bg-muted p-4 @xl/main:grid-cols-2 @3xl/main:grid-cols-[minmax(0,1fr)_260px_auto]"><div className="relative"><SearchIcon className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" /><Input@@ -288,16 +288,16 @@ function PortraitsPage() {{/* 人像大图弹窗 */}<Dialog open={viewerIndex !== null} onOpenChange={(o) => !o && setViewerIndex(null)}>- <DialogContent className="max-h-[90vh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">+ <DialogContent className="max-h-[90dvh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">{currentItem && viewerIndex !== null && (() => {const picked = recipe.portrait?.id === currentItem.idreturn (<div className="grid md:grid-cols-[1fr_320px]">- <div className="relative flex max-h-[78vh] min-h-[380px] items-center justify-center bg-muted/60 p-4">+ <div className="relative flex max-h-[78dvh] min-h-[min(380px,65dvh)] items-center justify-center bg-muted/60 p-4"><imgsrc={`/${currentItem.原图}`}alt={currentItem.标题}- className="max-h-[72vh] w-auto rounded-lg object-contain"+ className="max-h-[72dvh] w-auto rounded-lg object-contain"/><Buttonvariant="secondary"diff --git a/src/routes/poses.tsx b/src/routes/poses.tsxindex fdc52f3..b75724b 100644--- a/src/routes/poses.tsx+++ b/src/routes/poses.tsx@@ -250,7 +250,7 @@ function PosesPage() {</div>{/* 搜索与筛选面板 */}- <div className="grid gap-3 rounded-[22px] bg-muted p-4 md:grid-cols-[1fr_200px_auto_auto]">+ <div className="grid gap-3 rounded-[22px] bg-muted p-4 @xl/main:grid-cols-2 @4xl/main:grid-cols-[minmax(0,1fr)_200px_minmax(0,auto)_auto]"><div className="relative"><SearchIcon className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" /><Input@@ -459,7 +459,7 @@ function PosesPage() {{/* 高清大图预览弹窗 */}<Dialog open={Boolean(viewer)} onOpenChange={(o) => !o && setViewer(null)}>- <DialogContent className="max-h-[90vh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">+ <DialogContent className="max-h-[90dvh] w-[95vw] max-w-4xl overflow-y-auto p-0 sm:max-w-4xl">{viewer && (() => {const grp = filteredGroups[viewer.groupIndex]const it = viewer.item@@ -467,8 +467,8 @@ function PosesPage() {const activeImgPath = poseImagePath(it, poseDepthMode)return (<div className="grid md:grid-cols-[1fr_300px]">- <div className="relative flex max-h-[78vh] min-h-[360px] items-center justify-center bg-muted/60 p-4">- <img src={`/${activeImgPath}`} alt={it.姿势名称} className="max-h-[72vh] w-auto rounded-lg object-contain" />+ <div className="relative flex max-h-[78dvh] min-h-[min(360px,65dvh)] items-center justify-center bg-muted/60 p-4">+ <img src={`/${activeImgPath}`} alt={it.姿势名称} className="max-h-[72dvh] w-auto rounded-lg object-contain" />{grp && grp.order.length > 1 && (<><Buttondiff --git a/src/routes/studio.tsx b/src/routes/studio.tsxindex 6a6c7d3..a101f9c 100644--- a/src/routes/studio.tsx+++ b/src/routes/studio.tsx@@ -393,7 +393,7 @@ function StudioPage() {<div className="grid grid-cols-1 gap-4 lg:grid-cols-12 lg:gap-6">{/* 左栏:参考图、模型参数与 Prompt */}<div- className="flex flex-col gap-4 lg:col-span-7"+ className="flex min-w-0 flex-col gap-4 lg:col-span-7"onDragOver={(e) => {e.preventDefault()setIsDragging(true)@@ -404,7 +404,7 @@ function StudioPage() {{/* 1. 参考图组合 */}<Sectiontitle="1. 参考图组合"- className="md:grid-cols-1"+ className="@lg/section:grid-cols-1"actions={<div className="flex flex-wrap items-center gap-1.5"><input@@ -446,7 +446,7 @@ function StudioPage() {</div>)}{/* 3 个核心图库槽位:手机端单列舒展展示,平板/桌面端三列并排 */}- <div className="grid grid-cols-1 gap-2 sm:grid-cols-3">+ <div className="grid min-w-0 grid-cols-1 gap-2 @min-[42rem]/section:grid-cols-3">{/* 人像槽 */}<div className={`relative flex min-w-0 items-start gap-2.5 rounded-xl bg-background p-2.5 ${showReferenceErrors && missingReferences.includes('人像') ? 'ring-1 ring-destructive' : ''}`}>{recipe.portrait ? (@@ -563,7 +563,7 @@ function StudioPage() {</button><div className="flex min-h-12 min-w-0 flex-1 flex-col justify-between gap-1"><div className="flex items-center justify-between gap-1">- <div className="flex min-w-0 items-center gap-1.5">+ <div className="flex min-w-0 flex-wrap items-center gap-1.5"><span className="shrink-0 text-[11px] text-muted-foreground">姿势</span>{recipe.pose.source !== 'upload' && (<div@@ -640,7 +640,7 @@ function StudioPage() {{/* 附加参考图列表 + 可视化拖拽/粘贴上传框 */}<div className="space-y-2 pt-1">{extraImages.length > 0 && (- <div className="grid grid-cols-1 gap-2 sm:grid-cols-3">+ <div className="grid min-w-0 grid-cols-1 gap-2 @min-[42rem]/section:grid-cols-3">{extraImages.map((img, idx) => (<divkey={img.id}@@ -1359,7 +1359,7 @@ function StudioPage() {{/* 3. 提示词与生成按钮 */}<Sectiontitle="3. 提示词 (Prompt)"- className="md:grid-cols-1"+ className="@lg/section:grid-cols-1"actions={<div className="flex items-center gap-1.5"><Button variant="ghost" size="sm" onClick={() => setCustomPrompt(null)}>@@ -1408,10 +1408,10 @@ function StudioPage() {</div>{/* 右栏:专注展示 AI 生成结果与生成状态 */}- <div className="lg:col-span-5">+ <div className="min-w-0 lg:col-span-5"><Sectiontitle="生成结果"- className="md:grid-cols-1"+ className="@lg/section:grid-cols-1"actions={previewUrl && !isGenerating ? (<Button variant="outline" size="sm" asChild>@@ -1437,7 +1437,7 @@ function StudioPage() {</Badge>)}{generationProgress && (- <div className="w-56 space-y-1.5 pt-1">+ <div className="w-56 max-w-full space-y-1.5 pt-1"><div className="text-xs text-foreground/80">{generationProgress.message}</div>{generationProgress.percent !== undefined && (<div className="h-1.5 overflow-hidden rounded-full bg-muted">@@ -1490,7 +1490,7 @@ function StudioPage() {{history.length > 0 && (<Sectiontitle={`生成记录 (${history.length})`}- className="grid-cols-2 sm:grid-cols-3 md:grid-cols-4"+ className="grid-cols-2 @lg/section:grid-cols-3 @3xl/section:grid-cols-4"actions={<Button variant="ghost" size="sm" onClick={clearHistory}><Trash2Icon className="size-3.5" />@@ -1560,8 +1560,8 @@ function StudioPage() {{/* 生成结果全屏放大灯箱 */}<Dialog open={Boolean(zoomImageUrl)} onOpenChange={(o) => !o && setZoomImageUrl(null)}>- <DialogContent className="max-h-[92vh] w-[95vw] max-w-4xl overflow-y-auto p-4 sm:max-w-4xl">- <DialogHeader className="flex flex-row items-center justify-between pr-6">+ <DialogContent className="max-h-[92dvh] w-[95vw] max-w-4xl overflow-y-auto p-4 sm:max-w-4xl">+ <DialogHeader className="flex flex-row flex-wrap items-center justify-between gap-3 pr-8"><div><DialogTitle className="text-base">图片大图预览</DialogTitle><DialogDescription className="sr-only">参考图片或生成结果的放大预览。按 Esc 或关闭按钮返回。</DialogDescription></div>{zoomImageUrl && (<Button size="sm" variant="outline" asChild>@@ -1577,7 +1577,7 @@ function StudioPage() {<imgsrc={zoomImageUrl}alt="大图预览"- className="max-h-[78vh] w-auto rounded-lg object-contain"+ className="max-h-[78dvh] w-auto rounded-lg object-contain"/></div>)}@@ -1586,8 +1586,8 @@ function StudioPage() {{/* 参考拼图独立弹窗(不占用主画布) */}<Dialog open={Boolean(stitchModalUrl)} onOpenChange={(o) => !o && setStitchModalUrl(null)}>- <DialogContent className="max-h-[90vh] w-[95vw] max-w-3xl overflow-y-auto p-4 sm:max-w-3xl">- <DialogHeader className="flex flex-row items-center justify-between pr-6">+ <DialogContent className="max-h-[90dvh] w-[95vw] max-w-3xl overflow-y-auto p-4 sm:max-w-3xl">+ <DialogHeader className="flex flex-row flex-wrap items-center justify-between gap-3 pr-8"><DialogTitle className="text-base">参考图拼合卡片</DialogTitle>{stitchModalUrl && (<Button size="sm" variant="outline" asChild>@@ -1603,7 +1603,7 @@ function StudioPage() {<imgsrc={stitchModalUrl}alt="参考拼图"- className="max-h-[70vh] w-auto rounded-lg object-contain"+ className="max-h-[70dvh] w-auto rounded-lg object-contain"/></div>)}@@ -1612,8 +1612,8 @@ function StudioPage() {{/* ComfyUI API 工作流 JSON 编辑器弹窗 */}<Dialog open={showComfyJsonModal} onOpenChange={setShowComfyJsonModal}>- <DialogContent className="max-h-[90vh] w-[95vw] max-w-3xl overflow-y-auto p-4 sm:max-w-3xl">- <DialogHeader className="flex flex-row items-center justify-between pr-6">+ <DialogContent className="max-h-[90dvh] w-[95vw] max-w-3xl overflow-y-auto p-4 sm:max-w-3xl">+ <DialogHeader className="flex flex-row flex-wrap items-center justify-between gap-3 pr-8"><DialogTitle className="text-base">ComfyUI API 工作流 JSON</DialogTitle><Buttonsize="sm"