Skip to content

Commit efd7ea2

Browse files
committed
Add right-click context menu to sidebar tree items, fix z-index for settings panel
1 parent 55569df commit efd7ea2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/App.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,6 +2728,7 @@ onUnmounted(() => {
27282728
<div
27292729
class="sidebar-tree-item"
27302730
:class="{ active: currentContainerId === node.id }"
2731+
@contextmenu.prevent="showContextMenu($event, node)"
27312732
>
27322733
<button
27332734
v-if="node.children?.length"
@@ -2744,6 +2745,7 @@ onUnmounted(() => {
27442745
<div
27452746
class="sidebar-tree-item level-1"
27462747
:class="{ active: currentContainerId === child.id }"
2748+
@contextmenu.prevent="showContextMenu($event, child)"
27472749
>
27482750
<button
27492751
v-if="child.children?.length"
@@ -2762,6 +2764,7 @@ onUnmounted(() => {
27622764
class="sidebar-tree-item level-2"
27632765
:class="{ active: currentContainerId === grandchild.id }"
27642766
@click="enterContainer(grandchild)"
2767+
@contextmenu.prevent="showContextMenu($event, grandchild)"
27652768
>
27662769
<span class="tree-spacer"></span>
27672770
<span class="type-icon" :class="grandchild.type"><span v-html="getTypeIcon(grandchild.type)"></span></span>
@@ -4819,7 +4822,7 @@ onUnmounted(() => {
48194822
border-radius: 8px;
48204823
padding: 12px;
48214824
min-width: 250px;
4822-
z-index: 100;
4825+
z-index: 9500;
48234826
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
48244827
}
48254828

0 commit comments

Comments
 (0)