mirror of https://github.com/vector-im/riot-web
Clearer avatar sizing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
d243f7bad8
commit
c2aada6aa7
|
@ -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 New Issue