From 4b04c6401cb96a5cc2b70d953a8fc5f18ade56ae Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 1 Oct 2026 11:33:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(viral-video):=20STEP2/STEP3=20=E4=B8=BB?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=BC=BA=E5=A4=B1=E4=BF=AE=E5=A4=8D=EF=BC=88?= =?UTF-8?q?=E5=A7=8B=E7=BB=88=E6=98=BE=E7=A4=BA=EF=BC=8C=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E7=A6=81=E7=94=A8/=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=EF=BC=89=20(#2119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复STEP2/STEP3主按钮缺失(PR #2119) --- .../src/pages/viral-video/ViralVideoPage.css | 51 +++++++++----- .../src/pages/viral-video/ViralVideoPage.tsx | 68 ++++++++++++------- 2 files changed, 78 insertions(+), 41 deletions(-) diff --git a/apps/web/src/pages/viral-video/ViralVideoPage.css b/apps/web/src/pages/viral-video/ViralVideoPage.css index ab3966a36..f3d314d08 100644 --- a/apps/web/src/pages/viral-video/ViralVideoPage.css +++ b/apps/web/src/pages/viral-video/ViralVideoPage.css @@ -889,9 +889,22 @@ transform: translateY(-1px); } .vv-btn-primary:disabled { - opacity: 0.5; + opacity: 0.55; cursor: not-allowed; } +.vv-btn-primary.vv-btn-disabled-gray, +.vv-btn-primary:disabled.vv-btn-disabled-gray { + background: #d1d5db !important; + color: #6b7280 !important; + opacity: 1; + box-shadow: none !important; + transform: none !important; + cursor: not-allowed; +} +.vv-btn-primary.vv-btn-disabled-gray:hover { + box-shadow: none !important; + transform: none !important; +} .vv-btn-ghost { background: #fff; color: #6b7280; @@ -1180,13 +1193,29 @@ } /* 列禁用态 */ -.vv-col-disabled .vv-section { +.vv-col-disabled .vv-section-body, +.vv-col-disabled .vv-step-subhead, +.vv-col-disabled .vv-credits, +.vv-col-disabled .vv-preview, +.vv-col-disabled .vv-error, +.vv-col-disabled .vv-hint-gray, +.vv-col-disabled .vv-hint-yellow { opacity: 0.55; - pointer-events: none; } -.vv-col-disabled .vv-section .vv-btn-primary { - background: #d1d5db !important; - cursor: not-allowed; +.vv-col-disabled .vv-btn-primary, +.vv-col-disabled .vv-btn-primary:hover { + opacity: 1 !important; +} +.vv-col-disabled .vv-section .vv-form-row, +.vv-col-disabled .vv-section .vv-pill-row, +.vv-col-disabled .vv-section input, +.vv-col-disabled .vv-section textarea, +.vv-col-disabled .vv-section .ant-select, +.vv-col-disabled .vv-section .vv-pill, +.vv-col-disabled .vv-section .vv-action-btn, +.vv-col-disabled .vv-section .vv-audio-cell, +.vv-col-disabled .vv-section .vv-step-lock { + pointer-events: none; } /* Section 内小标题 */ @@ -1289,16 +1318,6 @@ } /* 列禁用态 */ -.vv-col-disabled .vv-section { - opacity: 0.55; -} -.vv-col-disabled .vv-section .vv-btn, -.vv-col-disabled .vv-section button, -.vv-col-disabled .vv-section input, -.vv-col-disabled .vv-section textarea, -.vv-col-disabled .vv-section .ant-select { - pointer-events: none; -} /* Section 内小标题 */ .vv-section-subtitle { diff --git a/apps/web/src/pages/viral-video/ViralVideoPage.tsx b/apps/web/src/pages/viral-video/ViralVideoPage.tsx index b059a7306..16c4a4808 100644 --- a/apps/web/src/pages/viral-video/ViralVideoPage.tsx +++ b/apps/web/src/pages/viral-video/ViralVideoPage.tsx @@ -1357,20 +1357,24 @@ const ViralVideoPage: React.FC = () => { )} - {/* STEP2 主按钮:✍️ 生成文案 */} - {step2Enabled && - task.uiStep !== "step2_copy_ready" && + {/* STEP2 主按钮:✍️ 生成文案(文案未确认前显示) */} + {task.uiStep !== "step2_copy_ready" && task.uiStep !== "step3_ready" && task.uiStep !== "step3_generating" && task.uiStep !== "step3_done" && ( - )} - {task.uiStep === "step3_generating" && ( - - )} - {task.uiStep === "step3_done" && outputUrl && ( - + ) : ( + outputUrl && ( + + ) )}