Skip to content

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

fix: bb-modal scrollbar (#4275)

Liu Jib98d66adc6d0
diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vue
index b1da5ec281..36c68903d4 100644
--- a/frontend/src/bbkit/BBModal.vue
+++ b/frontend/src/bbkit/BBModal.vue
@@ -9,8 +9,8 @@
:data-bb-modal-index="index"
:data-bb-modal-active="active"
>
- <div class="relative -mt-4 -ml-4 flex items-center justify-between">
- <div class="ml-4 text-xl text-main">
+ <div class="modal-header" :class="headerClass">
+ <div class="text-xl text-main">
<slot name="title"><component :is="renderTitle" /></slot>
<component :is="renderSubtitle" />
</div>
@@ -74,6 +74,10 @@ export default defineComponent({
type: Boolean,
default: true,
},
+ headerClass: {
+ type: [String, Object, Array] as PropType<VueClass>,
+ default: undefined,
+ },
containerClass: {
type: [String, Object, Array] as PropType<VueClass>,
default: undefined,
@@ -212,15 +216,17 @@ export const useOverrideSubtitle = (
<style scoped>
.bb-modal {
- @apply absolute m-auto w-full max-w-max bg-white shadow-lg rounded-lg p-8 flex space-y-6 divide-y divide-block-border pointer-events-auto;
+ @apply absolute m-auto w-full max-w-max bg-white shadow-lg rounded-lg pt-4 pb-4 flex pointer-events-auto;
@apply flex-col;
max-height: calc(100vh - 80px);
}
-.modal-container {
- @apply px-px pt-4 max-h-screen overflow-auto w-full;
+.modal-header {
+ @apply relative mx-8 pb-2 flex items-center justify-between border-b border-block-border;
+}
- margin-top: 0.5rem !important;
+.modal-container {
+ @apply px-8 pt-2 max-h-screen overflow-auto w-full;
}
</style>
diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vue
index bff33063f4..2a5448ebc7 100644
--- a/frontend/src/views/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail.vue
@@ -282,7 +282,8 @@
v-if="state.showSchemaDiagram"
:title="$t('schema-diagram.self')"
class="h-[calc(100vh-40px)] !max-h-[calc(100vh-40px)]"
- container-class="flex-1 !pt-0 !border-0"
+ header-class="!border-0"
+ container-class="flex-1 !pt-0"
@close="state.showSchemaDiagram = false"
>
<div class="w-[80vw] h-full">