File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
libs/remix-ui/terminal/src/lib/components Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import { CustomTooltip } from '@remix-ui/helper'
22import React from 'react' // eslint-disable-line
3- import { FormattedMessage } from 'react-intl'
43import { RemixUiTerminalProps } from '../types/terminalTypes'
54
65export const RemixUITerminalMenuMaximize = ( props : RemixUiTerminalProps ) => {
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import { RemixUiTerminalProps } from '../types/terminalTypes'
55export const RemixUITerminalMenuToggle = ( props : RemixUiTerminalProps ) => {
66
77 async function handleToggleTerminal ( ) : Promise < void > {
8+ // If panel is maximized, un-maximize it first to show main panel
9+ if ( props . isMaximized && props . maximizePanel ) {
10+ await props . maximizePanel ( )
11+ }
812 // Toggle the bottom terminal panel using terminal-wrap component
913 await props . plugin . call ( 'terminal' , 'togglePanel' )
1014 }
You can’t perform that action at this time.
0 commit comments