Skip to content

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

chore: update BBSelect and BBComboBox style (#2728)

boojack9c77cdf36c53
diff --git a/frontend/src/bbkit/BBComboBox.vue b/frontend/src/bbkit/BBComboBox.vue
index 56714236e6..ae423d1ade 100644
--- a/frontend/src/bbkit/BBComboBox.vue
+++ b/frontend/src/bbkit/BBComboBox.vue
@@ -66,9 +66,7 @@
:ref="(el: any) => (itemRefs[index] = el)"
role="option"
class="text-main cursor-default select-none relative py-2 pl-3 pr-9"
- :class="
- index === state.activeIndex && 'text-main-text bg-main-hover'
- "
+ :class="index === state.activeIndex && 'bg-gray-200'"
@click="doSelect(item)"
@mouseover="state.activeIndex = index"
>
diff --git a/frontend/src/bbkit/BBSelect.vue b/frontend/src/bbkit/BBSelect.vue
index 2bbaa82584..dae99a2c68 100644
--- a/frontend/src/bbkit/BBSelect.vue
+++ b/frontend/src/bbkit/BBSelect.vue
@@ -72,8 +72,7 @@
v-for="(item, index) in itemList"
:key="index"
role="option"
- class="group text-main hover:text-main-text hover:bg-main-hover cursor-default select-none relative py-2 pl-3 pr-9"
- :class="itemAdditionClass"
+ class="group text-main cursor-default select-none relative py-2 pl-3 pr-9 hover:bg-gray-200"
@click="
if (item !== state.selectedItem) {
$emit('select-item', item, () => {
@@ -161,10 +160,6 @@ export default defineComponent({
type: Boolean,
default: false,
},
- itemAdditionClass: {
- type: String,
- default: "",
- },
},
emits: ["select-item"],
setup(props) {
diff --git a/frontend/src/components/DatabaseSelect.vue b/frontend/src/components/DatabaseSelect.vue
index d08f0c7904..3736fb33fe 100644
--- a/frontend/src/components/DatabaseSelect.vue
+++ b/frontend/src/components/DatabaseSelect.vue
@@ -5,9 +5,6 @@
:disabled="disabled"
:placeholder="$t('database.select')"
:show-prefix-item="true"
- :item-addition-class="
- showEngineIcon ? 'hover:!bg-gray-200 hover:text-main' : ''
- "
@select-item="(database: Database) => $emit('select-database-id', database.id)"
>
<template #menuItem="{ item: database }">