Skip to content

Commit

Permalink
🩹(frontend) fix border radius issue on safari
Browse files Browse the repository at this point in the history
I introduced a bug while moving the border radius css style to the
parent element of the video.

On safari, the video element wasn't rounded anymore.

Fix this! Please note our approach should be refactored, nit-picking,
but there are few pixels leaking from the black background on the
video corner.
  • Loading branch information
lebaudantoine committed Jan 31, 2025
1 parent 6935001 commit db51ca1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/frontend/src/features/rooms/components/Join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ const Effects = ({
bottom: 0,
height: '20%',
backgroundImage:
'linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(255,255,255,0) 100%)',
'linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(255,255,255,0) 100%)',
borderBottomRadius: '1rem',
})}
/>
</>
Expand Down Expand Up @@ -267,12 +268,13 @@ export const Join = ({
height="720"
className={css({
display: 'block',
width: '102%',
height: '102%',
width: '100%',
height: '100%',
objectFit: 'cover',
transform: 'rotateY(180deg)',
opacity: 0,
transition: 'opacity 0.3s ease-in-out',
borderRadius: '1rem',
})}
disablePictureInPicture
disableRemotePlayback
Expand Down

0 comments on commit db51ca1

Please sign in to comment.