Skip to content

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

Add label to the BBCheckbox and repurpose the existing label as title

天舟b3820280555d
diff --git a/frontend/src/bbkit/BBCheckbox.vue b/frontend/src/bbkit/BBCheckbox.vue
index 1942792bf6..91f49a886b 100644
--- a/frontend/src/bbkit/BBCheckbox.vue
+++ b/frontend/src/bbkit/BBCheckbox.vue
@@ -3,7 +3,15 @@
<div class="flex items-center h-5">
<input
type="checkbox"
- class="h-4 w-4 text-accent rounded disabled:cursor-not-allowed border-control-border focus:ring-accent"
+ class="
+ h-4
+ w-4
+ text-accent
+ rounded
+ disabled:cursor-not-allowed
+ border-control-border
+ focus:ring-accent
+ "
:disabled="disabled"
:checked="value"
@input="
@@ -14,12 +22,19 @@
"
/>
</div>
- <div v-if="label" class="ml-2 text-sm">
+ <div v-if="title" class="flex flex-col ml-2 text-sm">
<label
class="font-medium"
:class="disabled ? 'text-gray-400' : 'text-main'"
- >{{ label }}</label
+ >{{ title }}</label
>
+ <template v-if="label">
+ <label
+ class="mt-1 font-normal"
+ :class="disabled ? 'text-gray-400' : 'text-gray-500'"
+ >{{ label }}</label
+ >
+ </template>
</div>
</div>
</template>
@@ -31,6 +46,10 @@ export default {
name: "BBCheckbox",
emits: ["toggle"],
props: {
+ title: {
+ default: "",
+ type: String,
+ },
label: {
default: "",
type: String,