From 89a3a0cc3abd9d759fa2ce3a1e27ced9395890e3 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, 17 Aug 2025 14:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/style/work-flow.css | 7 +- components/pages/work-flow.tsx | 165 +++++++++--------- components/pages/work-flow/media-viewer.tsx | 4 +- components/pages/work-flow/thumbnail-grid.tsx | 2 +- 4 files changed, 89 insertions(+), 89 deletions(-) diff --git a/components/pages/style/work-flow.css b/components/pages/style/work-flow.css index de416bb..6f02097 100644 --- a/components/pages/style/work-flow.css +++ b/components/pages/style/work-flow.css @@ -159,6 +159,10 @@ display: flex; overflow: hidden; min-height: 0; + + display: grid; + grid-auto-rows: auto; + justify-content: center; } .videoContainer-qteKNi { flex: 1; @@ -166,13 +170,14 @@ display: flex; position: relative; justify-content: center; + + width: max-content; } .heroVideo-FIzuK1 { object-fit: cover; object-position: center; background-color: #0003; border-radius: 8px; - width: 100%; height: 100%; } .container-kIPoeH { diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index 4712df5..bfe7e94 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -21,7 +21,6 @@ const WorkFlow = React.memo(function WorkFlow() { console.log("init-WorkFlow"); return () => console.log("unmount-WorkFlow"); }, []); - const containerRef = useRef(null); const [isEditModalOpen, setIsEditModalOpen] = React.useState(false); const [activeEditTab, setActiveEditTab] = React.useState('1'); @@ -92,102 +91,98 @@ const WorkFlow = React.memo(function WorkFlow() { return (
-
-
-
-
-
- - - -
+
+
+
+
+ + +
-
-
- {dataLoadError ? ( +
+
+
+ {dataLoadError ? ( + - - -

数据加载失败

-
- -

- {dataLoadError} -

- - retryLoadData?.()} - whileHover={{ scale: 1.05 }} - whileTap={{ scale: 0.95 }} - > - - 重试加载 - + +

数据加载失败

- ) : isLoading ? ( - - ) : ( -
- - - -
- )} -
- {taskObject.currentStage !== 'final_video' && taskObject.currentStage !== 'script' && ( -
+ +

+ {dataLoadError} +

+ + retryLoadData?.()} + whileHover={{ scale: 1.05 }} + whileTap={{ scale: 0.95 }} + > + + 重试加载 + + + ) : isLoading ? ( + + ) : ( +
-
)} -
+ {taskObject.currentStage !== 'final_video' && taskObject.currentStage !== 'script' && ( +
+ +
+ )} +
diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index 27d4c89..b6aa3f0 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -137,7 +137,7 @@ export const MediaViewer = React.memo(function MediaViewer({ return (