Narrowed down avatar sizes
This commit is contained in:
parent
07f7fa93d6
commit
3a246656e3
30 changed files with 61 additions and 69 deletions
|
@ -215,17 +215,15 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
|
|||
|
||||
if (props.isInPip) {
|
||||
containerStyles = canvasStyles;
|
||||
avatarSize = AvatarSize.FIFTY_TWO;
|
||||
avatarSize = AvatarSize.FORTY_EIGHT;
|
||||
} else {
|
||||
const { width, height } = props;
|
||||
const shorterDimension = Math.min(width, height);
|
||||
|
||||
if (shorterDimension >= 240) {
|
||||
avatarSize = AvatarSize.ONE_HUNDRED_TWELVE;
|
||||
} else if (shorterDimension >= 180) {
|
||||
if (shorterDimension >= 180) {
|
||||
avatarSize = AvatarSize.EIGHTY;
|
||||
} else {
|
||||
avatarSize = AvatarSize.FIFTY_TWO;
|
||||
avatarSize = AvatarSize.FORTY_EIGHT;
|
||||
}
|
||||
|
||||
containerStyles = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue