Adjust for sidebar

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-06-12 08:15:26 +02:00
parent 5608e92885
commit 97b976b171
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
3 changed files with 53 additions and 73 deletions

View file

@ -38,7 +38,7 @@ interface IProps {
// due to a change in video metadata
onResize?: (e: Event) => void,
className: string,
primary: boolean,
}
interface IState {
@ -123,8 +123,8 @@ export default class VideoFeed extends React.Component<IProps, IState> {
render() {
const videoClasses = {
mx_VideoFeed: true,
mx_VideoFeed_nonPrimary: this.props.className !== "mx_VideoFeed_primary",
[this.props.className]: true,
mx_VideoFeed_primary: this.props.primary,
mx_VideoFeed_secondary: !this.props.primary,
mx_VideoFeed_voice: this.state.videoMuted,
mx_VideoFeed_video: !this.state.videoMuted,
mx_VideoFeed_mirror: (