ui: fix display

This commit is contained in:
undefined committed 2021-05-23 12:17:56 +08:00
1 parent 1d72362d49
commit fb102780aa
5 files changed
+5 -5

No files matched your search

@@ -14,7 +14,7 @@ export default function DataInputComponent(props) {
return (
<div {...rest} className={cn}>
{html // eslint-disable-next-line react/no-danger
? <div className="scratchpad__data-input" wrap="off" dangerouslySetInnerHTML={{ __html: value }} />
? <div className="scratchpad__data-input" wrap="off"><pre dangerouslySetInnerHTML={{ __html: value }} /></div>
: (
<textarea
className="scratchpad__data-input"