Clearer avatar sizing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-21 21:27:07 +02:00
parent d243f7bad8
commit c2aada6aa7
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
2 changed files with 7 additions and 3 deletions

View file

@ -38,6 +38,7 @@ export default class CallViewSidebar extends React.Component<IProps> {
feed={feed}
call={this.props.call}
primary={false}
pipMode={this.props.pipMode}
/>
);
});

View file

@ -154,12 +154,15 @@ export default class VideoFeed extends React.Component<IProps, IState> {
),
};
const { pipMode, primary } = this.props;
if (this.state.videoMuted) {
const member = this.props.feed.getMember();
let avatarSize;
if (this.props.pipMode) avatarSize = 76;
else if (!this.props.primary) avatarSize = 16;
else avatarSize = 160;
if (pipMode && primary) avatarSize = 76;
else if (pipMode && !primary) avatarSize = 16;
else if (!pipMode && primary) avatarSize = 160;
else; // TBD
return (
<div className={classnames(videoClasses)} >