Skip to content

Commit 98fb983

Browse files
committed
maximize the right area in bottom panel
1 parent a5ae15a commit 98fb983

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ export default class Terminal extends Plugin {
231231
wraps.forEach((wrap: HTMLElement) => {
232232
if (!wrap.classList.contains('terminal-wrap')) {
233233
wrap.classList.add('d-none')
234+
} else {
235+
// Add maximized class to terminal-wrap
236+
wrap.classList.add('maximized')
234237
}
235238
})
236239
}
@@ -246,6 +249,10 @@ export default class Terminal extends Plugin {
246249
const wraps = mainView.querySelectorAll('[class*="-wrap"]')
247250
wraps.forEach((wrap: HTMLElement) => {
248251
wrap.classList.remove('d-none')
252+
// Remove maximized class from terminal-wrap
253+
if (wrap.classList.contains('terminal-wrap')) {
254+
wrap.classList.remove('maximized')
255+
}
249256
})
250257
}
251258

libs/remix-ui/panel/src/lib/plugins/panel.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ iframe {
118118
height: 20%;
119119
}
120120

121+
.terminal-wrap.maximized {
122+
height: 100% !important;
123+
flex: 1;
124+
}
125+
121126
.terminal-wrap.minimized {
122127
height: 2rem !important;
123128
}

0 commit comments

Comments
 (0)