Skip to content

Commit

Permalink
Fix calling participant appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumi-signal committed Oct 30, 2023
1 parent f1e8ffe commit 953a1dd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
7 changes: 6 additions & 1 deletion stylesheets/_modules.scss
Expand Up @@ -3603,6 +3603,8 @@ button.module-image__border-overlay:focus {
}

&__header {
position: fixed;
top: 0;
color: #ffffff;
font-style: normal;
padding-bottom: 19px;
Expand Down Expand Up @@ -3640,6 +3642,8 @@ button.module-image__border-overlay:focus {
height: 100%;
position: absolute;
width: 100%;
// Improve appearance of blurred edges by reducing edge gradient effect
transform: scale(1.2, 1.2);
}
}

Expand Down Expand Up @@ -3743,6 +3747,7 @@ button.module-image__border-overlay:focus {
display: flex;
flex: 1 1 0;
width: 100%;
margin-block-start: 24px;
z-index: $z-index-above-base;

&__grid {
Expand Down Expand Up @@ -3978,7 +3983,6 @@ button.module-image__border-overlay:focus {
}

&__footer {
background: linear-gradient(transparent, $color-black-alpha-40);
bottom: 0;
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -4010,6 +4014,7 @@ button.module-image__border-overlay:focus {
overflow: hidden;
position: relative;
width: $local-preview-width;
box-shadow: 0px 4px 14px 0px $color-black-alpha-40;

&__video {
// The background-color is seen while the video loads.
Expand Down
1 change: 1 addition & 0 deletions stylesheets/components/CallControls.scss
Expand Up @@ -13,6 +13,7 @@
min-width: 480px;
height: 80px;
background-color: $color-gray-78;
box-shadow: 0px 4px 14px 0px $color-black-alpha-40;
border-radius: 18px;
margin-block-end: 16px;
padding-block: 22px;
Expand Down
1 change: 1 addition & 0 deletions stylesheets/components/CallingPreCallInfo.scss
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only

.module-CallingPreCallInfo {
margin-block-start: 43px;
text-align: center;
user-select: none;

Expand Down
33 changes: 18 additions & 15 deletions ts/components/DirectCallRemoteParticipant.tsx
Expand Up @@ -8,6 +8,7 @@ import type { ConversationType } from '../state/ducks/conversations';
import type { LocalizerType } from '../types/Util';
import { AvatarColors } from '../types/Colors';
import { Avatar, AvatarSize } from './Avatar';
import { CallBackgroundBlur } from './CallBackgroundBlur';

type PropsType = {
conversation: ConversationType;
Expand Down Expand Up @@ -72,21 +73,23 @@ function renderAvatar(
): JSX.Element {
return (
<div className="module-ongoing-call__remote-video-disabled">
<Avatar
acceptedMessageRequest={acceptedMessageRequest}
avatarPath={avatarPath}
badge={undefined}
color={color || AvatarColors[0]}
noteToSelf={false}
conversationType="direct"
i18n={i18n}
isMe={isMe}
phoneNumber={phoneNumber}
profileName={profileName}
title={title}
sharedGroupNames={sharedGroupNames}
size={AvatarSize.EIGHTY}
/>
<CallBackgroundBlur avatarPath={avatarPath} color={color}>
<Avatar
acceptedMessageRequest={acceptedMessageRequest}
avatarPath={avatarPath}
badge={undefined}
color={color || AvatarColors[0]}
noteToSelf={false}
conversationType="direct"
i18n={i18n}
isMe={isMe}
phoneNumber={phoneNumber}
profileName={profileName}
title={title}
sharedGroupNames={sharedGroupNames}
size={AvatarSize.EIGHTY}
/>
</CallBackgroundBlur>
</div>
);
}

0 comments on commit 953a1dd

Please sign in to comment.