Set log messages to wrap on line breaks

This retains \n characters on strings given as inputs
This commit is contained in:
Cass 2021-09-02 18:15:42 +01:00
parent 454a792f0a
commit aa929b1837

@ -101,7 +101,7 @@ function ScriptLogPopup(props: IProps): React.ReactElement {
</div> </div>
</div> </div>
<div className="log-box-log-container"> <div className="log-box-log-container">
<p>{props.script.logs.map((line: string, i: number): JSX.Element => <span key={i}>{line}<br /></span>)}</p> <p>{props.script.logs.map((line: string, i: number): JSX.Element => <span key={i} style={{whiteSpace: "pre-line"}}>{line}<br /></span>)}</p>
</div> </div>
</>); </>);
} }