修复宽度问题

This commit is contained in:
北枳 2025-10-13 20:05:09 +08:00
parent 9ba47f26c3
commit 5b6e4d0970

View File

@ -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
}}
>
<div className="relative w-full h-full group">
{/* 背景模糊的视频 */}
@ -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
}}
>
{/* 状态 */}