Skip to content

Commit 80a5849

Browse files
committed
execution trace height fix
1 parent c2d5939 commit 80a5849

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

apps/remix-ide/src/app/panels/terminal.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)