mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
ui: fix display
This commit is contained in:
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"
|
||||
|
||||
Reference in new issue
Block a user