Clearer avatar sizing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
d243f7bad8
commit
c2aada6aa7
2 changed files with 7 additions and 3 deletions
|
@ -38,6 +38,7 @@ export default class CallViewSidebar extends React.Component<IProps> {
|
|||
feed={feed}
|
||||
call={this.props.call}
|
||||
primary={false}
|
||||
pipMode={this.props.pipMode}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
|
|
@ -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)} >
|
||||
|
|
Loading…
Reference in a new issue