From 5b6e4d0970adb127b562f61cbc9fe89d79f2dcf8 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: Mon, 13 Oct 2025 20:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=BD=E5=BA=A6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/media-viewer.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index d6ef89a..dea189f 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -461,6 +461,9 @@ export const MediaViewer = React.memo(function MediaViewer({ className="relative w-full h-full rounded-lg overflow-hidden" key={`render-video-${taskObject.final.url}`} ref={videoContentRef} + style={{ + minWidth: placeholderWidth + }} >
{/* 背景模糊的视频 */} @@ -566,7 +569,7 @@ export const MediaViewer = React.memo(function MediaViewer({ key={`render-video-${urls}`} ref={videoContentRef} style={{ - width: taskObject.videos.data[currentSketchIndex].video_status !== 1 ? placeholderWidth : '100%' + minWidth: placeholderWidth }} > {/* 背景模糊的图片 */} @@ -774,7 +777,7 @@ export const MediaViewer = React.memo(function MediaViewer({ className="relative w-full h-full rounded-lg group overflow-hidden" key={`render-sketch-${currentSketch.url}`} style={{ - width: currentSketch.status === 1 ? '100%' : placeholderWidth + minWidth: placeholderWidth }} > {/* 状态 */}