@@ -2104,9 +2104,11 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21042104 const showChatEffects = SettingsStore . getValue ( 'showChatEffects' ) ;
21052105
21062106 let mainSplitBody ;
2107+ let mainSplitContentClassName ;
21072108 // Decide what to show in the main split
21082109 switch ( this . state . mainSplitContentType ) {
21092110 case MainSplitContentType . Timeline :
2111+ mainSplitContentClassName = "mx_MainSplit_timeline" ;
21102112 mainSplitBody = < >
21112113 < Measured
21122114 sensor = { this . roomViewBody . current }
@@ -2126,6 +2128,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21262128 </ > ;
21272129 break ;
21282130 case MainSplitContentType . MaximisedWidget :
2131+ mainSplitContentClassName = "mx_MainSplit_maximisedWidget" ;
21292132 mainSplitBody = < >
21302133 < AppsDrawer
21312134 room = { this . state . room }
@@ -2139,6 +2142,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21392142 case MainSplitContentType . Video : {
21402143 const app = getVoiceChannel ( this . state . room . roomId ) ;
21412144 if ( ! app ) break ;
2145+ mainSplitContentClassName = "mx_MainSplit_video" ;
21422146 mainSplitBody = < AppTile
21432147 app = { app }
21442148 room = { this . state . room }
@@ -2150,6 +2154,8 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21502154 /> ;
21512155 }
21522156 }
2157+ const mainSplitContentClasses = classNames ( "mx_RoomView_body" , mainSplitContentClassName ) ;
2158+
21532159 let excludedRightPanelPhaseButtons = [ RightPanelPhases . Timeline ] ;
21542160 let onAppsClick = this . onAppsClick ;
21552161 let onForgetClick = this . onForgetClick ;
@@ -2165,6 +2171,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21652171 onForgetClick = null ;
21662172 onSearchClick = null ;
21672173 }
2174+
21682175 return (
21692176 < RoomContext . Provider value = { this . state } >
21702177 < main className = { mainClasses } ref = { this . roomView } onKeyDown = { this . onReactKeyDown } >
@@ -2186,7 +2193,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
21862193 excludedRightPanelPhaseButtons = { excludedRightPanelPhaseButtons }
21872194 />
21882195 < MainSplit panel = { rightPanel } resizeNotifier = { this . props . resizeNotifier } >
2189- < div className = "mx_RoomView_body" ref = { this . roomViewBody } data-layout = { this . state . layout } >
2196+ < div className = { mainSplitContentClasses } ref = { this . roomViewBody } data-layout = { this . state . layout } >
21902197 { mainSplitBody }
21912198 </ div >
21922199 </ MainSplit >
0 commit comments