mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Don't mirror screensharing preview in PiP
This commit is contained in:
@@ -4292,9 +4292,10 @@ button.module-image__border-overlay:focus {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
transform: rotateY(180deg);
|
transform: rotateY(180deg);
|
||||||
&--presenting {
|
}
|
||||||
transform: inherit;
|
|
||||||
}
|
&--presenting video {
|
||||||
|
transform: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4372,7 +4373,8 @@ button.module-image__border-overlay:focus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--local {
|
&--local,
|
||||||
|
&--local-presenting {
|
||||||
bottom: 38px;
|
bottom: 38px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -4380,11 +4382,14 @@ button.module-image__border-overlay:focus {
|
|||||||
width: 32px;
|
width: 32px;
|
||||||
|
|
||||||
video {
|
video {
|
||||||
transform: rotateY(180deg);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--local video {
|
||||||
|
transform: rotateY(180deg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__actions {
|
&__actions {
|
||||||
|
|||||||
@@ -261,6 +261,10 @@ export function CallingPip({
|
|||||||
}, [isRTL, windowWidth, windowHeight, positionState]);
|
}, [isRTL, windowWidth, windowHeight, positionState]);
|
||||||
const localizedTranslateX = isRTL ? -translateX : translateX;
|
const localizedTranslateX = isRTL ? -translateX : translateX;
|
||||||
|
|
||||||
|
const localVideoClassName = activeCall.presentingSource
|
||||||
|
? 'module-calling-pip__video--local-presenting'
|
||||||
|
: 'module-calling-pip__video--local';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
||||||
<div
|
<div
|
||||||
@@ -305,10 +309,7 @@ export function CallingPip({
|
|||||||
setGroupCallVideoRequest={setGroupCallVideoRequest}
|
setGroupCallVideoRequest={setGroupCallVideoRequest}
|
||||||
/>
|
/>
|
||||||
{hasLocalVideo ? (
|
{hasLocalVideo ? (
|
||||||
<div
|
<div className={localVideoClassName} ref={setLocalPreviewContainer} />
|
||||||
className="module-calling-pip__video--local"
|
|
||||||
ref={setLocalPreviewContainer}
|
|
||||||
/>
|
|
||||||
) : null}
|
) : null}
|
||||||
<div className="module-calling-pip__actions">
|
<div className="module-calling-pip__actions">
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user