Skip to content

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

chore: add a hint on help trigger point (#2052)

ZhengX10b612234627
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 0dd26b7309..94ce5f0d9a 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -202,7 +202,12 @@
@apply invisible absolute -mt-8 ml-2 px-2 py-1 rounded bg-black bg-opacity-75 text-white;
}
-.tooltip-wrapper:hover .tooltip {
+.tooltip-left {
+ @apply invisible absolute -top-1 right-6 px-2 py-1 rounded bg-black bg-opacity-75 text-white;
+}
+
+.tooltip-wrapper:hover .tooltip,
+.tooltip-wrapper:hover .tooltip-left {
@apply visible z-50;
}
diff --git a/frontend/src/components/Breadcrumb.vue b/frontend/src/components/Breadcrumb.vue
index b8162c9c29..fcd401c1b6 100644
--- a/frontend/src/components/Breadcrumb.vue
+++ b/frontend/src/components/Breadcrumb.vue
@@ -51,7 +51,12 @@
</div>
</div>
- <HelpTriggerIcon v-if="helpName" :id="helpName" :is-guide="true" />
+ <div class="tooltip-wrapper">
+ <span class="tooltip-left whitespace-nowrap">
+ {{ $t("common.show-help") }}
+ </span>
+ <HelpTriggerIcon v-if="helpName" :id="helpName" :is-guide="true" />
+ </div>
</nav>
</template>
diff --git a/frontend/src/components/Drawer.vue b/frontend/src/components/Drawer.vue
index 4710aafad8..fd4e439705 100644
--- a/frontend/src/components/Drawer.vue
+++ b/frontend/src/components/Drawer.vue
@@ -26,8 +26,6 @@
</template>
<script lang="ts" setup>
-import { defineProps, defineEmits } from "vue";
-
const props = defineProps({
show: {
type: Boolean,
@@ -59,7 +57,7 @@ const handleClose = () => {
};
</script>
-<style scope>
+<style scoped>
.slide-enter-active,
.slide-leave-active {
transition: all 0.3s ease;
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 9259992675..4001fe42c7 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -204,7 +204,8 @@
"pitr": "PITR",
"fix": "Fix",
"go-now": "Go now",
- "sync-now": "Sync Now"
+ "sync-now": "Sync Now",
+ "show-help": "Show help"
},
"error-page": {
"go-back-home": "Go back home"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index ad0f7be094..db8439bbe1 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -204,7 +204,8 @@
"pitr": "PITR",
"fix": "修复",
"go-now": "立即前往",
- "sync-now": "现在同步"
+ "sync-now": "现在同步",
+ "show-help": "查看帮助"
},
"error-page": {
"go-back-home": "回到主页"