diff --git a/src/lib/components/ContextMenu/ContextMenu.svelte b/src/lib/components/ContextMenu/ContextMenu.svelte index 804cd2a7..093947c6 100644 --- a/src/lib/components/ContextMenu/ContextMenu.svelte +++ b/src/lib/components/ContextMenu/ContextMenu.svelte @@ -10,6 +10,7 @@ export let id = Symbol(); let menu: HTMLDivElement; + let windowWidth: number; let fixedPosition = { x: 0, y: 0 }; @@ -41,7 +42,11 @@ } - + {#if $contextMenu === id}