Skip to content

Commit

Permalink
added last code
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 18, 2023
1 parent b4b6a17 commit e21d4b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/Layout/Modals/MediaModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const MediaModal = () => {
onCanPlay={() => setLoaded(true)}
className={loaded ? 'visible' : ''}
>
<source
src={addParamsToLink(modalAttrs.videoFile, 'c_fill,h_1000,w_1000,q_auto', 'video')}
type="video/mp4"
/>
<source src={addParamsToLink(modalAttrs.videoFile, 'q_auto', 'video')} type="video/mp4" />
</Video>
)}
{!modalAttrs.videoFile && <Image className={loaded ? 'visible' : ''} src={modalAttrs.imageFile} />}
Expand Down

0 comments on commit e21d4b8

Please sign in to comment.