fixed xterms hiding

pull/4566/head
lianahus 11 months ago
parent 15b964bcda
commit c0f2955529
  1. 4
      libs/remix-ui/xterm/src/lib/components/remix-ui-xterminals.tsx

@ -141,9 +141,9 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => {
}, [xtermState.showOutput]) }, [xtermState.showOutput])
return (<> 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) => { {terminals.map((xtermState) => {
return ( return (
<div className={`h-100 w-100 ${xtermState.hidden ? 'd-none' : 'd-block'}`} key={xtermState.pid} data-id={`remixUIXT${xtermState.pid}`}> <div className={`h-100 w-100 ${xtermState.hidden ? 'd-none' : 'd-block'}`} key={xtermState.pid} data-id={`remixUIXT${xtermState.pid}`}>

Loading…
Cancel
Save