Merge pull request #1124 from TomCassWindred/WrapOnLineBreak

Set log messages to wrap on line breaks
This commit is contained in:
hydroflame 2021-09-02 13:24:30 -04:00 committed by GitHub
commit a652140224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>
</>); </>);
} }