From b1294dbf5d8db6bc6aec4c1d8385880e5d4ac18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sun, 31 Aug 2025 05:51:57 +0800 Subject: [PATCH] aaaaaaa --- components/SmartChatBox/SmartChatBox.tsx | 4 +-- components/pages/work-flow.tsx | 2 +- components/pages/work-flow/media-viewer.tsx | 25 ++++++++----------- .../pages/work-flow/use-workflow-data.tsx | 2 +- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/components/SmartChatBox/SmartChatBox.tsx b/components/SmartChatBox/SmartChatBox.tsx index ff7a812..90a7e38 100644 --- a/components/SmartChatBox/SmartChatBox.tsx +++ b/components/SmartChatBox/SmartChatBox.tsx @@ -1,5 +1,5 @@ import React, { useRef, useCallback, useState, useEffect } from "react"; -import { ChevronsRight, ChevronDown } from 'lucide-react'; +import { ChevronsRight, ChevronDown, X } from 'lucide-react'; import { Switch } from 'antd'; import { MessageRenderer } from "./MessageRenderer"; import { InputBar } from "./InputBar"; @@ -141,7 +141,7 @@ export default function SmartChatBox({ />
- setIsSmartChatBoxOpen(false)} /> diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index fc15f17..e79f7e2 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -147,7 +147,7 @@ const WorkFlow = React.memo(function WorkFlow() { {/* 智能对话按钮 */}
{/* 背景模糊的视频 */} @@ -349,20 +350,16 @@ export const MediaViewer = React.memo(function MediaViewer({ {memoizedFinalVideoElement} - {/* 完成状态标签 */} - -
-
-
- completed -
-
-
+ {/* 编辑和剪辑按钮 */} +
+ {showGotoCutButton && ( + + + + )} +
{/* 操作按钮组 */} {/* diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index a073b50..2890c61 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -563,7 +563,7 @@ export function useWorkflowData() { fallbackToStep, originalText: state.originalText, // showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false, - showGotoCutButton: canGoToCut && currentLoadingText.includes('Post-production') ? true : false, + showGotoCutButton: canGoToCut ? true : false, generateEditPlan }; }