fix(pipeline): 基础资产页去掉重复「重新提取」按钮 + 留存的升二级(守单橙锚点)

- 删顶栏右上浮动「重新提取」(pipeline-reextract,JSX + CSS)—— 它与左侧「重新提取角色/场景」
  提取后同时出现、点的是同一动作(runExtract only),重复。
- 留左侧那个(上下文更贴、文案更清),并按 design.md §3 从三级 ghost 升二级(btn btn-sm,
  白底+inside-border)—— 比 ghost 显眼一档,又不抢橙(单橙锚点仍归 生成三视图/确认资产)。

自检:用共享 .btn 类、无裸色值/无新阴影/未重写共享类;tsc 绿。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
seaislee1209
2026-06-23 01:43:38 +08:00
co-authored by Claude Opus 4.8
parent a24dbb868a
commit e5b3833ba5
2 changed files with 1 additions and 9 deletions
+1 -7
View File
@@ -2278,12 +2278,6 @@ export function PipelinePage(props: {
<div className="content content--fh content--fh-flat" id="page-content">
<CornerMarks />
{/* 基础资产页:右上角(头像正下方)重新提取角色/场景 —— 仅本阶段且已提取过时露出 */}
{viewStage === 2 && project.metadata?.entities_extracted === true && (
<button type="button" className="btn btn-ghost btn-sm pipeline-reextract" onClick={() => void runExtract("only")} disabled={extractState === "running"}>
{extractState === "running" ? "提取中…" : "重新提取"}
</button>
)}
{notice && <ToastLike notice={notice} />}
{/* ============= STAGE 1 · 脚本 ============= */}
@@ -2676,7 +2670,7 @@ export function PipelinePage(props: {
<strong className="mono">// 场景 +¥0.15/张</strong>
<span style={{ color: "var(--black-alpha-48)" }}>()</span>
{(entitiesExtracted || hasAnyAsset) && (
<button type="button" className="btn btn-ghost btn-sm eg-reextract" disabled={extractState === "running"} data-stop onClick={() => void runExtract("only")}>
<button type="button" className="btn btn-sm eg-reextract" disabled={extractState === "running"} data-stop onClick={() => void runExtract("only")}>
{extractState === "running" ? "提取中…" : "重新提取角色 / 场景"}
</button>
)}