mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
25 lines
363 B
JavaScript
25 lines
363 B
JavaScript
|
|
/**
|
||
|
|
* Make video element fill its container.
|
||
|
|
*/
|
||
|
|
const video = {
|
||
|
|
flex: 1,
|
||
|
|
objectFit: 'cover',
|
||
|
|
width: '100%'
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Transform local videos to behave like a mirror.
|
||
|
|
*/
|
||
|
|
const mirroredVideo = {
|
||
|
|
...video,
|
||
|
|
transform: 'scaleX(-1)'
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Web-specific styles for media components.
|
||
|
|
*/
|
||
|
|
export const styles = {
|
||
|
|
mirroredVideo,
|
||
|
|
video
|
||
|
|
};
|