You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Clearer avatar sizing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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)} >
|
||||||
|
|||||||
Reference in New Issue
Block a user