Add spacer for better top-down

This commit is contained in:
Daniel Kluge 2021-12-26 13:59:22 +01:00
parent b9d3bd6c45
commit eb49cfdd68
2 changed files with 5 additions and 1 deletions

View File

@ -7,9 +7,14 @@ const REPL = () => {
const inputRef = useRef<HTMLInputElement>();
const onCommandExecuted = (result: string[]) => manipulateHistory(result.reverse().concat(history).slice(0, 1000));
const focusInput = () => {
if (inputRef.current) inputRef.current.focus();
}
return (<>
<REPLHistory history={history} inputRef={inputRef} />
<REPLInput historyCallback={onCommandExecuted} inputRef={inputRef} />
<div style={{flexGrow: 2}} onClick={focusInput}></div>
</>);
};

View File

@ -19,7 +19,6 @@
width: 100%;
flex-direction: row;
flex-wrap: nowrap;
flex-grow: 2;
}
.inputstart {