We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f275e commit 2cd2be3Copy full SHA for 2cd2be3
src/ValueNodeWrapper.tsx
@@ -344,7 +344,9 @@ export const ValueNodeWrapper: React.FC<ValueNodeProps> = (props) => {
344
<div
345
className="jer-component jer-value-component"
346
style={{
347
- marginLeft: `${indent / 2}em`,
+ // If parentData is null, then we have a Value node at the root level,
348
+ // so don't indent it.
349
+ marginLeft: parentData !== null ? `${indent / 2}em` : 0,
350
position: 'relative',
351
}}
352
draggable={canDrag}
0 commit comments