Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: performance issue when there's lot's of NEllipsis (#4095)
Liu Ji2fc68b6b8b5d
diff --git a/frontend/src/components/SchemaDiagram/ER/TableNode.vue b/frontend/src/components/SchemaDiagram/ER/TableNode.vueindex 9b6d5d46c9..44978be96a 100644--- a/frontend/src/components/SchemaDiagram/ER/TableNode.vue+++ b/frontend/src/components/SchemaDiagram/ER/TableNode.vue@@ -37,16 +37,10 @@{{ column.name }}</div></td>- <td class="w-[6rem] text-xs text-gray-400 py-1.5 pr-1.5">- <NEllipsis- class="w-full text-right"- :tooltip="{- showArrow: false,- contentStyle: tooltipStyle,- }"- >- {{ column.type }}- </NEllipsis>+ <td+ class="w-[6rem] text-xs text-gray-400 py-1.5 pr-1.5 text-right truncate"+ >+ {{ column.type }}</td></tr></table>@@ -55,7 +49,6 @@<script lang="ts" setup>import { computed } from "vue";-import { NEllipsis } from "naive-ui";import { hashCode } from "@/bbkit/BBUtil";import { TableMetadata } from "@/types/proto/store/database";@@ -69,12 +62,6 @@ const props = withDefaults();const { idOfTable, rectOfTable } = useSchemaDiagramContext();-const tooltipStyle = `- max-width: 20rem;- white-space: pre-wrap;- word-break: break-all-`;-const COLOR_LIST = ["#64748B","#EF4444",