fix: context menu bug and incorrect position (#3874)

This commit is contained in:
Nivedin
2024-03-07 17:59:06 +05:30
committed by GitHub
parent 7ec8659381
commit 8deba7a28e
3 changed files with 27 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div
ref="contextMenuRef"
class="fixed translate-y-8 transform rounded border border-dividerDark bg-popover p-2 shadow-lg"
:style="`top: ${position.top}px; left: ${position.left}px; z-index: 1000;`"
class="fixed transform -translate-x-10 -translate-y-8 rounded border border-dividerDark bg-popover p-2 shadow-lg"
:style="`top: ${position.top}px; left: ${position.left}px; z-index: 100;`"
>
<div v-if="contextMenuOptions" class="flex flex-col">
<div