diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 9ae10ea3bc..73dda402ad 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -4126,41 +4126,53 @@ button.module-image__border-overlay:focus { } } - &--title { + &__info { @include font-caption; - background: linear-gradient( - 180deg, - transparent, - $color-black-alpha-60 100% - ); bottom: 0; display: flex; + justify-content: space-between; padding: 6px; position: absolute; user-select: none; width: 100%; z-index: $z-index-above-base; + + &__contact-name { + color: $color-white; + margin-right: 20px; + overflow: hidden; + text-overflow: ellipsis; + visibility: hidden; + white-space: nowrap; + } + + &--audio-muted::after { + $size: 14px; + @include color-svg( + '../images/icons/v2/mic-off-solid-28.svg', + $color-white + ); + content: ''; + height: $size; + min-width: $size; + right: 6px; + width: $size; + z-index: $z-index-base; + } } - &--contact-name { - color: $color-white; - margin-right: 20px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } + &:hover { + .module-ongoing-call__group-call-remote-participant__info { + background: linear-gradient( + 180deg, + transparent, + $color-black-alpha-60 100% + ); - &--audio-muted::after { - @include color-svg( - '../images/icons/v2/mic-off-solid-28.svg', - $color-white - ); - content: ''; - height: 14px; - position: absolute; - right: 6px; - width: 14px; - z-index: $z-index-base; + &__contact-name { + visibility: visible; + } + } } } diff --git a/ts/components/GroupCallRemoteParticipant.tsx b/ts/components/GroupCallRemoteParticipant.tsx index 1819f2f487..95ba074701 100644 --- a/ts/components/GroupCallRemoteParticipant.tsx +++ b/ts/components/GroupCallRemoteParticipant.tsx @@ -80,7 +80,6 @@ export const GroupCallRemoteParticipant: React.FC = React.memo( const [isWide, setIsWide] = useState( videoAspectRatio ? videoAspectRatio >= 1 : true ); - const [hasHover, setHover] = useState(false); const [showBlockInfo, setShowBlockInfo] = useState(false); // We have some state (`hasReceivedVideoRecently`) and this ref. We can't have a @@ -238,8 +237,6 @@ export const GroupCallRemoteParticipant: React.FC = React.memo( } } - const showHover = hasHover && !props.isInPip; - return ( <> {showBlockInfo && ( @@ -266,22 +263,20 @@ export const GroupCallRemoteParticipant: React.FC = React.memo(
setHover(true)} - onMouseLeave={() => setHover(false)} style={containerStyles} > - {showHover && ( + {!props.isInPip && (