Skip to content

Commit

Permalink
[test-studio] Use pre-wrap for preview component
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 19, 2019
1 parent 2b6af49 commit e91d512
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/test-studio/src/deskStructure.js
Expand Up @@ -20,7 +20,13 @@ function Preview(props) {
return <Spinner center message="Loading document" />
}

return <JSONPretty data={historical || draft || published} theme={monikai} />
return (
<JSONPretty
data={historical || draft || published}
theme={monikai}
mainStyle="white-space: pre-wrap"
/>
)
}

export default () =>
Expand Down

0 comments on commit e91d512

Please sign in to comment.