File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ const IDEView = () => {
80
80
81
81
const [ consoleSize , setConsoleSize ] = useState ( 150 ) ;
82
82
const [ sidebarSize , setSidebarSize ] = useState ( 160 ) ;
83
- // const [isOverlayVisible, setIsOverlayVisible] = useState(true );
83
+ const [ isOverlayVisible , setIsOverlayVisible ] = useState ( false ) ;
84
84
85
85
const cmRef = useRef ( { } ) ;
86
86
@@ -155,11 +155,10 @@ const IDEView = () => {
155
155
split = "vertical"
156
156
defaultSize = "50%"
157
157
onChange = { ( ) => {
158
- // setIsOverlayVisible(true);
158
+ setIsOverlayVisible ( true ) ;
159
159
} }
160
160
onDragFinished = { ( ) => {
161
- // overlayRef.current.style.display = 'none';
162
- // setIsOverlayVisible(false);
161
+ setIsOverlayVisible ( false ) ;
163
162
} }
164
163
resizerStyle = { {
165
164
borderLeftWidth : '2px' ,
@@ -193,7 +192,7 @@ const IDEView = () => {
193
192
< div className = "preview-frame__content" >
194
193
< div
195
194
className = "preview-frame-overlay"
196
- // style={{ display: isOverlayVisible ? 'block' : 'none' }}
195
+ style = { { display : isOverlayVisible ? 'block' : 'none' } }
197
196
/>
198
197
< div >
199
198
{ ( ( preferences . textOutput || preferences . gridOutput ) &&
You can’t perform that action at this time.
0 commit comments