修复无封面视频BUG
This commit is contained in:
@@ -479,7 +479,22 @@ const AdminGenerationAiRecords: React.FC = () => {
|
|||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
if (!preview.videoCoverUrl) {
|
if (!preview.videoCoverUrl) {
|
||||||
return <MediaPlaceholder text="此视频无封面" minHeight={340} action={playButton} />;
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
inset: 0,
|
||||||
|
borderRadius: 12,
|
||||||
|
overflow: 'hidden',
|
||||||
|
background: '#f8f9fc',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<MediaPlaceholder text="此视频无封面" minHeight={340} action={playButton} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resourceState.videoCover === 'invalid') {
|
if (resourceState.videoCover === 'invalid') {
|
||||||
|
|||||||
Reference in New Issue
Block a user