Skip to content

Commit

Permalink
Call lobby: don't flip avatar when video is off
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Aug 18, 2021
1 parent 91af0da commit 1965228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion stylesheets/components/CallingLobby.scss
Expand Up @@ -7,9 +7,12 @@
object-fit: cover;
opacity: 0.6;
position: absolute;
transform: rotateY(180deg);
width: 100%;
z-index: -1;

&--camera-is-on {
transform: rotateY(180deg);
}
}

&__camera-is-off {
Expand Down
4 changes: 2 additions & 2 deletions ts/components/CallingLobby.tsx
Expand Up @@ -153,13 +153,13 @@ export const CallingLobby = ({
<div className="module-calling__container">
{shouldShowLocalVideo ? (
<video
className="module-CallingLobby__local-preview"
className="module-CallingLobby__local-preview module-CallingLobby__local-preview--camera-is-on"
ref={localVideoRef}
autoPlay
/>
) : (
<CallBackgroundBlur
className="module-CallingLobby__local-preview"
className="module-CallingLobby__local-preview module-CallingLobby__local-preview--camera-is-off"
avatarPath={me.avatarPath}
color={me.color}
/>
Expand Down

0 comments on commit 1965228

Please sign in to comment.