File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
apps/remix-ide/src/app/panels Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,24 @@ export default class Terminal extends Plugin {
337337 plugin : this ,
338338 onReady : onReady
339339 } )
340+
341+ // Update terminal height based on debugging state
342+ setTimeout ( ( ) => {
343+ // Try to find terminal-wrap first, fall back to terminal-view
344+ const terminalWrap = document . querySelector ( '.terminal-wrap' ) as HTMLElement
345+ const terminalPanel = document . getElementById ( 'terminal-view' )
346+ const element = terminalWrap || terminalPanel
347+
348+ if ( element ) {
349+ if ( this . isDebugging ) {
350+ element . style . height = '32.8vh'
351+ element . style . minHeight = '32.8vh'
352+ } else {
353+ element . style . height = ''
354+ element . style . minHeight = ''
355+ }
356+ }
357+ } , 0 )
340358 }
341359
342360 scroll2bottom ( ) {
You can’t perform that action at this time.
0 commit comments