File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ const IDEView = () => {
127
127
} ;
128
128
} , [ shouldAutosave , dispatch ] ) ;
129
129
130
+ const consoleCollapsedSize = 29 ;
131
+ const currentConsoleSize = ide . consoleIsExpanded
132
+ ? consoleSize
133
+ : consoleCollapsedSize ;
134
+
130
135
return (
131
136
< RootPage >
132
137
< Helmet >
@@ -171,8 +176,8 @@ const IDEView = () => {
171
176
< SplitPane
172
177
split = "horizontal"
173
178
primary = "second"
174
- size = { ide . consoleIsExpanded ? consoleSize : 29 }
175
- minSize = { 29 }
179
+ size = { currentConsoleSize }
180
+ minSize = { consoleCollapsedSize }
176
181
onChange = { ( size ) => {
177
182
setConsoleSize ( size ) ;
178
183
} }
@@ -206,16 +211,16 @@ const IDEView = () => {
206
211
< >
207
212
< FloatingActionButton
208
213
syncFileContent = { syncFileContent }
209
- offsetBottom = { ide . isPlaying ? consoleSize : 20 }
214
+ offsetBottom = { ide . isPlaying ? currentConsoleSize : 0 }
210
215
/>
211
216
< PreviewWrapper show = { ide . isPlaying } >
212
217
< SplitPane
213
218
style = { { position : 'static' } }
214
219
split = "horizontal"
215
220
primary = "second"
216
- size = { ide . consoleIsExpanded ? consoleSize : 29 }
217
- minSize = { 29 }
218
- onChange = { ( size ) => {
221
+ size = { currentConsoleSize }
222
+ minSize = { consoleCollapsedSize }
223
+ onChange = { ( size ) => {
219
224
setConsoleSize ( size ) ;
220
225
setIsOverlayVisible ( true ) ;
221
226
} }
You can’t perform that action at this time.
0 commit comments