Skip to content

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

fix: add max-width to NTooltip components to prevent text overflow (#19423)

h3n4l5ab730278027
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/SslCertificateFormV1.vue b/frontend/src/components/InstanceForm/DataSourceSection/SslCertificateFormV1.vue
index 36a836091d..01ecedd53b 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/SslCertificateFormV1.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/SslCertificateFormV1.vue
@@ -9,7 +9,7 @@
<label class="textlabel block">
{{ verifyLabel }}
</label>
- <NTooltip v-if="showTooltip">
+ <NTooltip v-if="showTooltip" style="max-width: 20rem">
<template #trigger>
<Info class="w-4 h-4 text-yellow-600" />
</template>
diff --git a/frontend/src/components/Member/MembersBindingSelect.vue b/frontend/src/components/Member/MembersBindingSelect.vue
index 78c3ffef6f..2ce8004b3b 100644
--- a/frontend/src/components/Member/MembersBindingSelect.vue
+++ b/frontend/src/components/Member/MembersBindingSelect.vue
@@ -16,7 +16,7 @@
<div class="flex text-main items-center gap-x-1">
{{ $t("settings.members.select-account", 2 /* multiply*/) }}
<RequiredStar v-if="required" />
- <NTooltip>
+ <NTooltip style="max-width: 20rem">
<template #trigger>
<CircleHelpIcon class="w-4 textinfolabel" />
</template>
diff --git a/frontend/src/components/Plan/components/ChecksView/ChecksView.vue b/frontend/src/components/Plan/components/ChecksView/ChecksView.vue
index 42d32de0da..236bb1d71a 100644
--- a/frontend/src/components/Plan/components/ChecksView/ChecksView.vue
+++ b/frontend/src/components/Plan/components/ChecksView/ChecksView.vue
@@ -79,7 +79,10 @@
<span class="text-sm font-medium">
{{ getCheckTypeLabel(group.type) }}
</span>
- <NTooltip v-if="getCheckTypeDescription(group.type)">
+ <NTooltip
+ v-if="getCheckTypeDescription(group.type)"
+ style="max-width: 20rem"
+ >
<template #trigger>
<CircleQuestionMarkIcon
class="w-4 h-4 text-control-light"
diff --git a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
index a9967ba817..fa220d9bdc 100644
--- a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
+++ b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
@@ -4,7 +4,7 @@
<div class="flex items-center justify-between gap-2">
<div class="flex flex-row items-center gap-2">
<h3 class="text-base">{{ $t("plan.checks.self") }}</h3>
- <NTooltip v-if="isStatementOversized">
+ <NTooltip v-if="isStatementOversized" style="max-width: 20rem">
<template #trigger>
<NTag type="warning" round size="tiny">
<template #icon>
@@ -38,7 +38,10 @@
@click="openChecksDrawer($event)"
/>
- <NTooltip v-if="checksOfSelectedSpec.length > 0 && affectedRows > 0">
+ <NTooltip
+ v-if="checksOfSelectedSpec.length > 0 && affectedRows > 0"
+ style="max-width: 20rem"
+ >
<template #trigger>
<NTag round :bordered="false">
<div class="flex items-center gap-1">
diff --git a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckSection.vue b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckSection.vue
index 62d8243f59..b5bc924f2e 100644
--- a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckSection.vue
+++ b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckSection.vue
@@ -12,7 +12,10 @@
</span>
<div v-else class="flex flex-row justify-start items-center gap-2">
<SQLCheckBadge :advices="checkResult.advices" />
- <NTooltip v-if="checkResult.affectedRows > 0">
+ <NTooltip
+ v-if="checkResult.affectedRows > 0"
+ style="max-width: 20rem"
+ >
<template #trigger>
<NTag round>
<span class="opacity-80"
diff --git a/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue b/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
index ef6027a933..eb8f82d81c 100644
--- a/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
+++ b/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
@@ -50,7 +50,10 @@
<span class="text-success">{{ $t("common.success") }}</span>
</span>
- <NTooltip v-if="checkResults && affectedRows > 0">
+ <NTooltip
+ v-if="checkResults && affectedRows > 0"
+ style="max-width: 20rem"
+ >
<template #trigger>
<NTag round :bordered="false">
<div class="flex items-center gap-1">