diff --git a/packages/editor/editor.css b/packages/editor/editor.css index 2c668be97..3b25671f6 100644 --- a/packages/editor/editor.css +++ b/packages/editor/editor.css @@ -41,7 +41,6 @@ --layer-collaborator-cursor: 130; --layer-grid: 150; --layer-culled-shapes: 175; - --layer-canvas: 200; --layer-shapes: 300; --layer-overlays: 400; --layer-in-front-overlay: 500; @@ -257,7 +256,6 @@ input, height: 100%; width: 100%; color: var(--color-text); - z-index: var(--layer-canvas); cursor: var(--tl-cursor); overflow: clip; content-visibility: auto; @@ -313,17 +311,6 @@ input, pointer-events: none; } -.tl-front { - z-index: var(--layer-in-front); - position: absolute; - inset: 0px; - height: 100%; - width: 100%; - overflow: clip; - content-visibility: auto; - touch-action: none; - pointer-events: none; -} /* ------------------- Background ------------------- */ .tl-background__wrapper { @@ -1068,7 +1055,7 @@ input, display: flex; align-items: center; justify-content: center; - z-index: var(--layer-canvas); + z-index: 200; font-size: 12px; font-weight: 400; color: var(--color-text-1); diff --git a/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx b/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx index 99e650898..668abd686 100644 --- a/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx +++ b/packages/editor/src/lib/components/default-components/DefaultCanvas.tsx @@ -125,53 +125,62 @@ export function DefaultCanvas({ className }: TLCanvasComponentProps) { ) return ( -