Refactor value renderer

This commit is contained in:
Thomas Nordquist
2019-07-17 15:18:27 +02:00
parent c86659f61c
commit d651fc7a6c
4 changed files with 36 additions and 43 deletions

View File

@@ -91,7 +91,7 @@ function ValuePanel(props: Props) {
<span>Value {copyValue}</span>
<span style={{ width: '100%' }}>
{renderViewOptions()}
<div style={{ marginBottom: '-8px' }}>
<div style={{ marginBottom: '-8px', marginTop: '8px' }}>
<React.Suspense fallback={<div>Loading...</div>}>
<RenderedValue node={node} compareMessage={compareMessage} />
</React.Suspense>