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 }} > {/* 状态 */}