fixed xterms hiding

pull/5370/head
lianahus 9 months ago
parent 9457e87979
commit 8249cef95e
  1. 4
      libs/remix-ui/xterm/src/lib/components/remix-ui-xterminals.tsx

@ -141,9 +141,9 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => {
}, [xtermState.showOutput])
return (<>
{ !xtermState.showOutput && <div style={{ flexGrow: 1 }} className='d-flex flex-row h-100'>
{ <div style={{ flexGrow: 1 }} className={`flex-row ${xtermState.showOutput ? 'h-0 d-none' : 'h-100 d-flex'}`}>
<>
{ !xtermState.showOutput && <div className={`flex-row w-100 h-100 d-flex`}>
{ <div className={`flex-row w-100 h-100 ${xtermState.showOutput ? 'h-0 d-none' : 'h-100 d-flex'}`}>
{terminals.map((xtermState) => {
return (
<div className={`h-100 w-100 ${xtermState.hidden ? 'd-none' : 'd-block'}`} key={xtermState.pid} data-id={`remixUIXT${xtermState.pid}`}>

Loading…
Cancel
Save