Merge pull request #17695 from KDSBrowne/bbb-iphone-patch

fix: Prevent Webcam Styling Crash On iPhones
This commit is contained in:
Anton Georgiev 2023-04-24 08:56:57 -04:00 committed by GitHub
commit bf04095593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,8 +236,8 @@ const WebcamComponent = ({
role="region" role="region"
draggable={cameraDock.isDraggable && !isFullscreen ? 'true' : undefined} draggable={cameraDock.isDraggable && !isFullscreen ? 'true' : undefined}
style={{ style={{
width: isDragging ? cameraSize.width : cameraDock.width, width: `${isDragging ? cameraSize.width : cameraDock.width}pt`,
height: isDragging ? cameraSize.height : cameraDock.height, height: `${isDragging ? cameraSize.height : cameraDock.height}pt`,
opacity: isDragging ? 0.5 : undefined, opacity: isDragging ? 0.5 : undefined,
background: isCameraSidebar ? colorContentBackground : null, background: isCameraSidebar ? colorContentBackground : null,
}} }}