1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00

fix: z-index for laser pointer to be able to draw on embeds and such (#7918)

This commit is contained in:
Milos Vetesnik 2024-04-22 23:53:55 +02:00 committed by GitHub
parent 1bd2b1fe55
commit c851aaaf7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

@ -1,3 +1,5 @@
@import "../css/variables.module.scss";
.excalidraw {
.SVGLayer {
pointer-events: none;
@ -7,7 +9,7 @@
top: 0;
left: 0;
z-index: 2;
z-index: var(--zIndex-svgLayer);
& svg {
image-rendering: auto;

@ -4,6 +4,7 @@
:root {
--zIndex-canvas: 1;
--zIndex-interactiveCanvas: 2;
--zIndex-svgLayer: 3;
--zIndex-wysiwyg: 3;
--zIndex-canvasButtons: 3;
--zIndex-layerUI: 4;