Skip to content

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

Make BBNotification z-50 and BBModal z-40 so that Notification can appear above the Modal

天舟5844cfaa1f97
diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vue
index 0b9b7faea4..83154880cb 100644
--- a/frontend/src/bbkit/BBModal.vue
+++ b/frontend/src/bbkit/BBModal.vue
@@ -3,11 +3,23 @@
-->
<template>
<div
- class="fixed inset-0 w-full h-screen flex items-center justify-center z-50"
+ class="fixed inset-0 w-full h-screen flex items-center justify-center z-40"
style="background-color: rgba(209, 213, 219, 0.8)"
>
<div
- class="relative max-h-screen w-full max-w-max bg-white shadow-lg rounded-lg p-8 flex space-y-6 divide-y divide-block-border"
+ class="
+ relative
+ max-h-screen
+ w-full
+ max-w-max
+ bg-white
+ shadow-lg
+ rounded-lg
+ p-8
+ flex
+ space-y-6
+ divide-y divide-block-border
+ "
>
<div>
<div class="absolute left-0 top-0 my-4 mx-8 text-xl text-main">
diff --git a/frontend/src/bbkit/BBNotification.vue b/frontend/src/bbkit/BBNotification.vue
index 8b8bafd192..a3010407f2 100644
--- a/frontend/src/bbkit/BBNotification.vue
+++ b/frontend/src/bbkit/BBNotification.vue
@@ -1,6 +1,6 @@
<template>
<div
- class="fixed inset-0 px-4 py-6 pointer-events-none sm:p-6"
+ class="fixed inset-0 px-4 py-6 pointer-events-none sm:p-6 z-50"
:class="placementClass"
>
<template
@@ -27,7 +27,16 @@
leave-to-class="opacity-0"
>
<div
- class="max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"
+ class="
+ max-w-sm
+ w-full
+ bg-white
+ shadow-lg
+ rounded-lg
+ pointer-events-auto
+ ring-1 ring-black ring-opacity-5
+ overflow-hidden
+ "
>
<div class="p-4">
<div class="flex items-start">
@@ -107,13 +116,32 @@
</p>
<div v-if="notification.link" class="mt-2">
<button
- class="bg-white rounded-md text-sm font-medium text-accent hover:text-accent-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent"
+ class="
+ bg-white
+ rounded-md
+ text-sm
+ font-medium
+ text-accent
+ hover:text-accent-hover
+ focus:outline-none
+ focus:ring-2 focus:ring-offset-2 focus:ring-accent
+ "
@click.prevent="viewLink(notification.link)"
>
{{ notification.linkTitle }}
</button>
<button
- class="ml-6 bg-white rounded-md text-sm font-medium text-gray-700 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent"
+ class="
+ ml-6
+ bg-white
+ rounded-md
+ text-sm
+ font-medium
+ text-gray-700
+ hover:text-gray-500
+ focus:outline-none
+ focus:ring-2 focus:ring-offset-2 focus:ring-accent
+ "
@click.prevent="$emit('close')"
>
Dismiss
@@ -122,7 +150,14 @@
</div>
<div class="ml-4 flex-shrink-0 flex">
<button
- class="bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none"
+ class="
+ bg-white
+ rounded-md
+ inline-flex
+ text-gray-400
+ hover:text-gray-500
+ focus:outline-none
+ "
@click.prevent="$emit('close')"
>
<span class="sr-only">Close</span>