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}
|
feed={feed}
|
||||||
call={this.props.call}
|
call={this.props.call}
|
||||||
primary={false}
|
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) {
|
if (this.state.videoMuted) {
|
||||||
const member = this.props.feed.getMember();
|
const member = this.props.feed.getMember();
|
||||||
let avatarSize;
|
let avatarSize;
|
||||||
if (this.props.pipMode) avatarSize = 76;
|
if (pipMode && primary) avatarSize = 76;
|
||||||
else if (!this.props.primary) avatarSize = 16;
|
else if (pipMode && !primary) avatarSize = 16;
|
||||||
else avatarSize = 160;
|
else if (!pipMode && primary) avatarSize = 160;
|
||||||
|
else; // TBD
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classnames(videoClasses)} >
|
<div className={classnames(videoClasses)} >
|
||||||
|
|
Loading…
Reference in a new issue