Skip to content

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

chore: update BBModal styles (#9832)

boojackc499b3b75547
diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vue
index 4e8a0bf7be..c0bd5878bb 100644
--- a/frontend/src/bbkit/BBModal.vue
+++ b/frontend/src/bbkit/BBModal.vue
@@ -14,7 +14,7 @@
:data-overlay-stack-upmost="upmost"
>
<div class="modal-header" :class="headerClass">
- <div class="text-xl text-main mr-2 flex-1 overflow-hidden">
+ <div class="text-lg text-main mr-2 flex-1 overflow-hidden">
<slot name="title"><component :is="renderTitle" /></slot>
<slot name="subtitle"><component :is="renderSubtitle" /></slot>
</div>
@@ -26,7 +26,7 @@
>
<span class="sr-only">Close</span>
<!-- Heroicons name: x -->
- <heroicons-solid:x class="w-6 h-6" />
+ <X class="w-5 h-auto hover:opacity-80" />
</button>
</div>
@@ -38,6 +38,7 @@
</template>
<script lang="ts">
+import { X } from "lucide-vue-next";
import { NModal } from "naive-ui";
import { defineComponent, h, PropType, RenderFunction } from "vue";
import { useOverlayStack } from "@/components/misc/OverlayStackManager.vue";
@@ -48,6 +49,7 @@ export default defineComponent({
name: "BBModalV2",
components: {
NModal,
+ X,
},
inheritAttrs: false,
props: {
@@ -149,18 +151,17 @@ export default defineComponent({
<style scoped lang="postcss">
.bb-modal {
- @apply bg-white shadow-lg rounded-lg pt-4 pb-4 flex pointer-events-auto;
- @apply flex-col;
+ @apply bg-white shadow-lg rounded-md py-3 flex pointer-events-auto flex-col gap-3;
max-width: calc(100vw - 80px);
max-height: calc(100vh - 80px);
}
.modal-header {
- @apply relative mx-8 pb-2 flex items-start justify-between border-b border-block-border;
+ @apply relative mx-4 pb-2 flex items-center justify-between border-b border-block-border;
}
.modal-container {
- @apply px-8 pt-2 max-h-screen overflow-auto w-full;
+ @apply px-4 max-h-screen overflow-auto w-full;
}
</style>
diff --git a/frontend/src/components/Project/ProjectSwitchModal.vue b/frontend/src/components/Project/ProjectSwitchModal.vue
index aaf885cb79..7967539733 100644
--- a/frontend/src/components/Project/ProjectSwitchModal.vue
+++ b/frontend/src/components/Project/ProjectSwitchModal.vue
@@ -7,8 +7,8 @@
class="w-[48rem] max-w-full h-128 max-h-full"
@close="$emit('dismiss')"
>
- <div class="space-y-2 h-full overflow-y-auto py-2 relative">
- <div class="w-full bg-white sticky top-0 mb-2 z-50">
+ <div class="h-full overflow-y-auto relative">
+ <div class="w-full bg-white sticky top-0 z-50">
<div class="flex items-center justify-between space-x-2">
<SearchBox
v-model:value="state.searchText"