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:
co-authored by
Claude Opus 4.8
parent
a24dbb868a
commit
e5b3833ba5
@@ -856,8 +856,6 @@
|
||||
.rg-force { display: inline-flex; align-items: baseline; gap: 5px; }
|
||||
.rg-warn { font-size: 10px; font-family: var(--font-mono); color: var(--black-alpha-48); }
|
||||
|
||||
/* 基础资产页:右上角(头像正下方)重新提取按钮 */
|
||||
.pipeline-reextract { position: absolute; top: 14px; right: 28px; z-index: 5; }
|
||||
/* 提取闸门单按钮:醒目主 CTA */
|
||||
.eg-extract-btn { margin-top: 24px; min-width: 220px; }
|
||||
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user