File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
apps/remix-ide/src/app/panels
libs/remix-ui/panel/src/lib/plugins Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments