forked from 77media/video-flow
修复宽度问题
This commit is contained in:
parent
9ba47f26c3
commit
5b6e4d0970
@ -461,6 +461,9 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
className="relative w-full h-full rounded-lg overflow-hidden"
|
className="relative w-full h-full rounded-lg overflow-hidden"
|
||||||
key={`render-video-${taskObject.final.url}`}
|
key={`render-video-${taskObject.final.url}`}
|
||||||
ref={videoContentRef}
|
ref={videoContentRef}
|
||||||
|
style={{
|
||||||
|
minWidth: placeholderWidth
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div className="relative w-full h-full group">
|
<div className="relative w-full h-full group">
|
||||||
{/* 背景模糊的视频 */}
|
{/* 背景模糊的视频 */}
|
||||||
@ -566,7 +569,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
key={`render-video-${urls}`}
|
key={`render-video-${urls}`}
|
||||||
ref={videoContentRef}
|
ref={videoContentRef}
|
||||||
style={{
|
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"
|
className="relative w-full h-full rounded-lg group overflow-hidden"
|
||||||
key={`render-sketch-${currentSketch.url}`}
|
key={`render-sketch-${currentSketch.url}`}
|
||||||
style={{
|
style={{
|
||||||
width: currentSketch.status === 1 ? '100%' : placeholderWidth
|
minWidth: placeholderWidth
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* 状态 */}
|
{/* 状态 */}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user