perf(*): 创作工作台 - 优化首页按需加载与画布交互并修复历史迁移冲突

This commit is contained in:
ddCat committed 2026-09-05 13:24:10 +08:00
1 parent 165b4443ab
commit 58f01d1eb6
107 files changed
+3025 -1089

No files matched your search

@@ -28,7 +28,7 @@ export function CanvasPortraitTexturePopover({ value, placement = "topLeft", onC
<div className="w-[min(350px,calc(100vw-32px))] p-2.5" style={{ color: theme.node.text }}>
<div className="mb-2 flex items-center gap-1.5 px-0.5">
<SlidersHorizontal className="size-3.5" style={{ color: theme.accent.primary }} />
<span className="text-xs font-medium">人物质感调节</span>
<span className="text-xs font-medium">质感调整</span>
</div>
<div className="space-y-1">
{PORTRAIT_TEXTURE_GROUPS.map((group) => (
@@ -75,10 +75,10 @@ export function CanvasPortraitTexturePopover({ value, placement = "topLeft", onC
type="button"
className="flex h-6 min-w-0 items-center gap-1 rounded-md px-1.5 transition-colors hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 motion-reduce:transition-none"
style={{ background: theme.accent.primarySoft, color: theme.accent.primary, outlineColor: theme.accent.primary }}
aria-label="打开人物质感调节面板"
aria-label="打开质感调整面板"
>
<SlidersHorizontal className="size-3 shrink-0" />
<span className="truncate text-[var(--fs-tiny)] font-medium">人物质感调节</span>
<span className="truncate text-[var(--fs-tiny)] font-medium">质感调整</span>
</button>
</Popover>
);