File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
services/app/apps/codebattle/assets/js/widgets/pages Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ import NetworkAlert from './game/NetworkAlert';
2727import TimeoutGameInfo from './game/TimeoutGameInfo' ;
2828import WaitingOpponentInfo from './game/WaitingOpponentInfo' ;
2929
30+ const disableSplit = true ;
31+
3032function getWindowDimensions ( ) {
3133 const { innerWidth : width , innerHeight : height } = window ;
3234 return {
@@ -53,7 +55,7 @@ export function useWindowDimensions() {
5355function PanelsSplitPane ( { children, viewMode } ) {
5456 const dimensions = useWindowDimensions ( ) ;
5557
56- if ( viewMode !== 'duel' || dimensions . width < 992 ) return children ;
58+ if ( viewMode !== 'duel' || dimensions . width < 992 || disableSplit ) return children ;
5759
5860 return (
5961 < Split
@@ -131,9 +133,9 @@ function RoomWidget({
131133 < div
132134 className = { cn (
133135 'container-fluid' , {
134- 'd-none' : roomLocked ,
135- invisible : ! visible ,
136- } ,
136+ 'd-none' : roomLocked ,
137+ invisible : ! visible ,
138+ } ,
137139 ) }
138140 >
139141 < div className = "row no-gutter cb-game" >
You can’t perform that action at this time.
0 commit comments