updated video css for previews
This commit is contained in:
parent
5b9e7c04af
commit
5b8dfea5c5
3 changed files with 3 additions and 3 deletions
|
@ -543,7 +543,7 @@ table {
|
||||||
|
|
||||||
/* show */
|
/* show */
|
||||||
|
|
||||||
#video {
|
.video {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
width: calc(100% - 12px - 12px - 2px);
|
width: calc(100% - 12px - 12px - 2px);
|
||||||
|
|
|
@ -51,7 +51,7 @@ class AssetDisplay extends React.Component {
|
||||||
);
|
);
|
||||||
case 'video/mp4':
|
case 'video/mp4':
|
||||||
return (
|
return (
|
||||||
<video id='video' className='asset' controls poster={thumbnail}>
|
<video className='asset video' controls poster={thumbnail}>
|
||||||
<source
|
<source
|
||||||
src={`/${claimId}/${name}.${fileExt}`}
|
src={`/${claimId}/${name}.${fileExt}`}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -24,7 +24,7 @@ const AssetPreview = ({ claimData: { name, claimId, fileExt, contentType, thumbn
|
||||||
case 'video/mp4':
|
case 'video/mp4':
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
className={'asset-preview'}
|
className={'asset-preview video'}
|
||||||
src={thumbnail || defaultThumbnail}
|
src={thumbnail || defaultThumbnail}
|
||||||
alt={name}
|
alt={name}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue