Fix video call container size inconsistencies (#7170)
This commit is contained in:
parent
cdbe25bd36
commit
a156ba8be9
5 changed files with 21 additions and 4 deletions
|
@ -56,6 +56,8 @@ interface IProps {
|
|||
|
||||
// Used for dragging the PiP CallView
|
||||
onMouseDownOnHeader?: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
||||
|
||||
showApps?: boolean;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
@ -614,9 +616,14 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||
);
|
||||
}
|
||||
|
||||
const myClassName = this.props.pipMode ? 'mx_CallView_pip' : 'mx_CallView_large';
|
||||
const callViewClasses = classNames({
|
||||
mx_CallView: true,
|
||||
mx_CallView_pip: this.props.pipMode,
|
||||
mx_CallView_large: !this.props.pipMode,
|
||||
mx_CallView_belowWidget: this.props.showApps, // css to correct the margins if the call is below the AppsDrawer.
|
||||
});
|
||||
|
||||
return <div className={"mx_CallView " + myClassName}>
|
||||
return <div className={callViewClasses}>
|
||||
<CallViewHeader
|
||||
onPipMouseDown={this.props.onMouseDownOnHeader}
|
||||
pipMode={this.props.pipMode}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue