Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add <div> to the top level BBContextMenu otherwise the style would be optimized in release build

天舟3c718026f89d
diff --git a/frontend/src/bbkit/BBContextMenu.vue b/frontend/src/bbkit/BBContextMenu.vue
index 8b75630649..f71c57ed21 100644
--- a/frontend/src/bbkit/BBContextMenu.vue
+++ b/frontend/src/bbkit/BBContextMenu.vue
@@ -10,7 +10,8 @@
</BBContextMenu>
-->
<template>
- <!--
+ <div class="z-50 absolute right-0 rounded-md shadow-lg">
+ <!--
Profile dropdown panel, show/hide based on dropdown state.
Entering: "transition ease-out duration-100"
@@ -20,30 +21,30 @@
From: "transform opacity-100 scale-100"
To: "transform opacity-0 scale-95"
-->
- <transition
- enter-active-class="transition ease-out duration-100"
- enter-class="transform opacity-0 scale-95"
- enter-to-class="transform opacity-100 scale-100"
- leave-active-class="transition ease-in duration-75"
- leave-class="transform opacity-100 scale-100"
- leave-to-class="transform opacity-0 scale-95"
- >
- <div
- class="z-50"
- v-show="isOpen"
- v-click-inside-outside="close"
- @contextmenu.capture.prevent
+ <transition
+ enter-active-class="transition ease-out duration-100"
+ enter-class="transform opacity-0 scale-95"
+ enter-to-class="transform opacity-100 scale-100"
+ leave-active-class="transition ease-in duration-75"
+ leave-class="transform opacity-100 scale-100"
+ leave-to-class="transform opacity-0 scale-95"
>
<div
- class="bg-white py-1 rounded-md shadow-xs"
- role="menu"
- aria-orientation="vertical"
- aria-labelledby="user-menu"
+ v-show="isOpen"
+ v-click-inside-outside="close"
+ @contextmenu.capture.prevent
>
- <slot :context="context" />
+ <div
+ class="bg-white py-1 rounded-md shadow-xs"
+ role="menu"
+ aria-orientation="vertical"
+ aria-labelledby="user-menu"
+ >
+ <slot :context="context" />
+ </div>
</div>
- </div>
- </transition>
+ </transition>
+ </div>
</template>
<script>
diff --git a/frontend/src/components/IssueStatusTransitionButtonGroup.vue b/frontend/src/components/IssueStatusTransitionButtonGroup.vue
index 48468101df..234cdd0a2e 100644
--- a/frontend/src/components/IssueStatusTransitionButtonGroup.vue
+++ b/frontend/src/components/IssueStatusTransitionButtonGroup.vue
@@ -51,18 +51,7 @@
></path>
</svg>
</button>
- <BBContextMenu
- ref="menu"
- class="
- origin-top-right
- absolute
- w-42
- right-0
- mt-10
- rounded-md
- shadow-lg
- "
- >
+ <BBContextMenu ref="menu" class="origin-top-right mt-10 w-42">
<template
v-for="(transition, index) in applicableIssueStatusTransitionList"
:key="index"
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vue
index 18719d547a..7ea18b9b53 100644
--- a/frontend/src/components/ProfileDropdown.vue
+++ b/frontend/src/components/ProfileDropdown.vue
@@ -11,10 +11,7 @@
>
<PrincipalAvatar :principal="currentUser" />
</button>
- <BBContextMenu
- ref="menu"
- class="origin-top-left absolute right-0 mt-2 w-48 rounded-md shadow-lg"
- >
+ <BBContextMenu ref="menu" class="origin-top-left mt-2 w-48">
<router-link
class="px-4 py-3 menu-item"
:to="`/u/${currentUser.id}`"