You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-03 00:33:22 +03:00 
			
		
		
		
	Fix video call container size inconsistencies (#7170)
This commit is contained in:
		@@ -18,7 +18,9 @@ limitations under the License.
 | 
				
			|||||||
$MiniAppTileHeight: 200px;
 | 
					$MiniAppTileHeight: 200px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.mx_AppsDrawer {
 | 
					.mx_AppsDrawer {
 | 
				
			||||||
    margin: 5px 5px 5px 13px;
 | 
					    margin: 5px;
 | 
				
			||||||
 | 
					    margin-bottom: 0; // No bottom margin for the correct gap to the CallView below.
 | 
				
			||||||
 | 
					    margin-left: 13px; // 5+8px to compensate for the scroll bar padding on the right.
 | 
				
			||||||
    position: relative;
 | 
					    position: relative;
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    flex-direction: column;
 | 
					    flex-direction: column;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,7 +26,7 @@ limitations under the License.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.mx_CallView_large {
 | 
					.mx_CallView_large {
 | 
				
			||||||
    padding-bottom: 10px;
 | 
					    padding-bottom: 10px;
 | 
				
			||||||
    margin: 5px 5px 5px 18px;
 | 
					    margin: 5px 5px 5px 13px;
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    flex-direction: column;
 | 
					    flex-direction: column;
 | 
				
			||||||
    flex: 1;
 | 
					    flex: 1;
 | 
				
			||||||
@@ -34,6 +34,10 @@ limitations under the License.
 | 
				
			|||||||
    .mx_CallView_voice {
 | 
					    .mx_CallView_voice {
 | 
				
			||||||
        flex: 1;
 | 
					        flex: 1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    &.mx_CallView_belowWidget {
 | 
				
			||||||
 | 
					        margin-top: 0;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.mx_CallView_pip {
 | 
					.mx_CallView_pip {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -121,6 +121,7 @@ export default class AuxPanel extends React.Component<IProps, IState> {
 | 
				
			|||||||
            <CallViewForRoom
 | 
					            <CallViewForRoom
 | 
				
			||||||
                roomId={this.props.room.roomId}
 | 
					                roomId={this.props.room.roomId}
 | 
				
			||||||
                resizeNotifier={this.props.resizeNotifier}
 | 
					                resizeNotifier={this.props.resizeNotifier}
 | 
				
			||||||
 | 
					                showApps={this.props.showApps}
 | 
				
			||||||
            />
 | 
					            />
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,6 +56,8 @@ interface IProps {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // Used for dragging the PiP CallView
 | 
					    // Used for dragging the PiP CallView
 | 
				
			||||||
    onMouseDownOnHeader?: (event: React.MouseEvent<Element, MouseEvent>) => void;
 | 
					    onMouseDownOnHeader?: (event: React.MouseEvent<Element, MouseEvent>) => void;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    showApps?: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface IState {
 | 
					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
 | 
					            <CallViewHeader
 | 
				
			||||||
                onPipMouseDown={this.props.onMouseDownOnHeader}
 | 
					                onPipMouseDown={this.props.onMouseDownOnHeader}
 | 
				
			||||||
                pipMode={this.props.pipMode}
 | 
					                pipMode={this.props.pipMode}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,6 +28,8 @@ interface IProps {
 | 
				
			|||||||
    roomId: string;
 | 
					    roomId: string;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    resizeNotifier: ResizeNotifier;
 | 
					    resizeNotifier: ResizeNotifier;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    showApps?: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface IState {
 | 
					interface IState {
 | 
				
			||||||
@@ -121,6 +123,7 @@ export default class CallViewForRoom extends React.Component<IProps, IState> {
 | 
				
			|||||||
                    <CallView
 | 
					                    <CallView
 | 
				
			||||||
                        call={this.state.call}
 | 
					                        call={this.state.call}
 | 
				
			||||||
                        pipMode={false}
 | 
					                        pipMode={false}
 | 
				
			||||||
 | 
					                        showApps={this.props.showApps}
 | 
				
			||||||
                    />
 | 
					                    />
 | 
				
			||||||
                </Resizable>
 | 
					                </Resizable>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user