Skip to content

Commit

Permalink
Fix:Ebook item context menu position on mouseover #2980
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed May 22, 2024
1 parent 69833db commit 700d7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/widgets/MoreMenu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div ref="wrapper" class="absolute bg-bg rounded-md py-1 border border-black-200 shadow-lg z-50" v-click-outside="clickOutsideObj" :style="{ width: menuWidth + 'px' }" style="top: 0; left: 0">
<div ref="wrapper" class="absolute bg-bg rounded-md py-1 border border-black-200 shadow-lg z-50" v-click-outside="clickOutsideObj" :style="{ width: menuWidth + 'px' }">
<template v-for="(item, index) in items">
<template v-if="item.subitems">
<div :key="index" class="flex items-center px-2 py-1.5 hover:bg-white/5 text-white text-xs cursor-default" :class="{ 'bg-white/5': mouseoverItemIndex == index }" @mouseover="mouseoverItem(index)" @mouseleave="mouseleaveItem(index)" @click.stop>
Expand Down Expand Up @@ -94,4 +94,4 @@ export default {
},
beforeDestroy() {}
}
</script>
</script>

0 comments on commit 700d7fe

Please sign in to comment.