diff --git a/packages/editor/editor.css b/packages/editor/editor.css index 8ca9da246..03bbb64f4 100644 --- a/packages/editor/editor.css +++ b/packages/editor/editor.css @@ -289,16 +289,18 @@ input, .tl-background__wrapper { z-index: var(--layer-background); -} - -.tl-background { position: absolute; - background-color: var(--color-background); inset: 0px; height: 100%; width: 100%; } +.tl-background { + background-color: var(--color-background); + width: 100%; + height: 100%; +} + /* --------------------- Grid Layer --------------------- */ .tl-grid { diff --git a/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx b/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx index 9efa5b477..a752edb54 100644 --- a/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx +++ b/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx @@ -118,52 +118,50 @@ export function DefaultCanvas({ className }: TLCanvasComponentProps) { ]) return ( - <> +
+ + + {shapeSvgDefs} + + + {SvgDefs && } + + {Background && (
)} -
- - - {shapeSvgDefs} - - - {SvgDefs && } - - - -
- - - {hideShapes ? null : debugSvg ? : } -
-
-
- {debugGeometry ? : null} - - - - - - - - - - -
- -
- + +
+ + + {hideShapes ? null : debugSvg ? : }
- +
+
+ {debugGeometry ? : null} + + + + + + + + + + +
+ +
+ +
) }