fix(frontend): Fix ratio of vimeo frame

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-02-04 14:27:41 +01:00
parent 5a2a3a4964
commit 94c659558e
2 changed files with 2 additions and 4 deletions

View file

@ -5,11 +5,10 @@ exports[`VimeoFrame renders a click shield 1`] = `
<span> <span>
This is a click shield for This is a click shield for
<span <span
class="embed-responsive embed-responsive-16by9" class="ratio ratio-16x9 d-inline-block"
> >
<iframe <iframe
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
class="embed-responsive-item"
src="https://player.vimeo.com/video/validVimeoId?autoplay=1" src="https://player.vimeo.com/video/validVimeoId?autoplay=1"
title="vimeo video of validVimeoId" title="vimeo video of validVimeoId"
/> />

View file

@ -43,9 +43,8 @@ export const VimeoFrame: React.FC<IdProps> = ({ id }) => {
onImageFetch={getPreviewImageLink} onImageFetch={getPreviewImageLink}
fallbackBackgroundColor={'#00adef'} fallbackBackgroundColor={'#00adef'}
data-cypress-id={'click-shield-vimeo'}> data-cypress-id={'click-shield-vimeo'}>
<span className={'embed-responsive embed-responsive-16by9'}> <span className={'ratio ratio-16x9 d-inline-block'}>
<iframe <iframe
className='embed-responsive-item'
title={`vimeo video of ${id}`} title={`vimeo video of ${id}`}
src={`https://player.vimeo.com/video/${id}?autoplay=1`} src={`https://player.vimeo.com/video/${id}?autoplay=1`}
allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture'