From c6e4c1d1a91a812bd2ec9cf75e6d0697221919ba Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Mon, 16 Nov 2020 13:57:58 -0600 Subject: [PATCH] Add audio mute indicator for local preview and group remote participants --- stylesheets/_modules.scss | 30 +++++++++++++++++++ ts/components/CallScreen.tsx | 6 +++- ts/components/GroupCallRemoteParticipant.tsx | 10 ++++++- ts/components/GroupCallRemoteParticipants.tsx | 1 + ts/util/lint/exceptions.json | 6 ++-- 5 files changed, 48 insertions(+), 5 deletions(-) diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index b2660b35e0..04d847f28b 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -6257,6 +6257,7 @@ button.module-image__border-overlay:focus { &__group-call-remote-participant { display: flex; justify-content: center; + position: relative; line-height: 0; overflow: hidden; @@ -6268,6 +6269,20 @@ button.module-image__border-overlay:focus { // The background-color is seen while the video loads. background-color: $color-gray-75; } + + &--audio-muted::before { + @include color-svg( + '../images/icons/v2/mic-off-solid-28.svg', + $color-white + ); + bottom: 12px; + content: ''; + height: 28px; + position: absolute; + right: 12px; + width: 28px; + z-index: 1; + } } &__footer { @@ -6298,6 +6313,7 @@ button.module-image__border-overlay:focus { height: $local-preview-height; margin: 2px 16px 16px 0; overflow: hidden; + position: relative; width: $local-preview-width; &__video { @@ -6307,6 +6323,20 @@ button.module-image__border-overlay:focus { transform: rotateY(180deg); width: 100%; } + + &--audio-muted::before { + @include color-svg( + '../images/icons/v2/mic-off-solid-28.svg', + $color-white + ); + bottom: 6px; + content: ''; + height: 14px; + position: absolute; + right: 6px; + width: 14px; + z-index: 1; + } } } diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index 88c2122d0f..5ebaba8e16 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -273,7 +273,11 @@ export const CallScreen: React.FC = ({ tooltipDistance={24} /> -
+
{hasLocalVideo ? (