Skip to content

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

Tweak outline toplevel title style

天舟32118dbf9ac5
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index ba9d9dd05a..90d1e33015 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -129,7 +129,11 @@
}
.outline-title {
- @apply text-control-light w-full group items-center text-xs leading-5 font-semibold focus:outline-none select-none tracking-wider;
+ @apply text-main w-full group items-center text-xs leading-5 font-semibold focus:outline-none select-none tracking-wider;
+}
+
+.outline-title.toplevel {
+ @apply text-control-light text-sm font-normal tracking-tight;
}
.outline-title.collapsible {
diff --git a/frontend/src/bbkit/BBOutline.vue b/frontend/src/bbkit/BBOutline.vue
index a0abc474e5..f702cecdda 100644
--- a/frontend/src/bbkit/BBOutline.vue
+++ b/frontend/src/bbkit/BBOutline.vue
@@ -2,11 +2,11 @@
<div
@click.prevent="toggleCollapse"
class="outline-title flex py-1"
- :class="allowCollapse ? 'collapsible' : ''"
+ :class="dynamicItemClass()"
@mouseenter="state.hoverTitle = true"
@mouseleave="state.hoverTitle = false"
>
- <span :class="titleClass()">{{ title }}</span>
+ <span :class="'pl-' + 2 * (level + 1)">{{ title }}</span>
<template v-if="allowCollapse && state.hoverTitle">
<svg
v-if="collapseState"
@@ -149,16 +149,21 @@ export default {
}
};
- const titleClass = () => {
- return (
- (props.level > 0 ? "text-main" : "") + " pl-" + 2 * (props.level + 1)
- );
+ const dynamicItemClass = () => {
+ let list = [];
+ if (props.level == 0) {
+ list.push("toplevel");
+ }
+ if (props.allowCollapse) {
+ list.push("collapsible");
+ }
+ return list.join(" ");
};
return {
state,
collapseState,
- titleClass,
+ dynamicItemClass,
toggleCollapse,
};
},
diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vue
index fe0fe0aafc..3e0d9002c9 100644
--- a/frontend/src/components/Quickstart.vue
+++ b/frontend/src/components/Quickstart.vue
@@ -1,7 +1,7 @@
<template>
<div class="space-y-2">
<div class="flex flex-row justify-between">
- <div class="outline-title flex text-xs">Quickstart</div>
+ <div class="outline-title toplevel flex">Quickstart</div>
<button class="btn-icon" @click.prevent="hideQuickstart">
<svg
class="w-4 h-4"