Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: improve schema designer table sidebar (#8138)
Tianzhou (天舟)5c2160b6244f
diff --git a/frontend/src/components/SchemaDesigner/DatabaseTree.vue b/frontend/src/components/SchemaDesigner/DatabaseTree.vueindex 582fd620f8..8271a9ef75 100644--- a/frontend/src/components/SchemaDesigner/DatabaseTree.vue+++ b/frontend/src/components/SchemaDesigner/DatabaseTree.vue@@ -1,24 +1,21 @@<template>- <div class="w-full h-full px-2 relative overflow-y-hidden">- <div class="w-full flex flex-col sticky top-0 pt-2 h-20 bg-white z-10">- <p class="w-full flex flex-row justify-between items-center h-8 px-1">- <span class="text-sm">{{ $t("schema-designer.tables") }}</span>- <button- v-if="!readonly"- class="text-gray-400 hover:text-gray-500 disabled:cursor-not-allowed"- @click="handleCreateTable"- >- <heroicons-outline:plus class="w-4 h-auto" />- </button>- </p>+ <div class="w-full h-full px-2 space-y-2 relative overflow-y-hidden">+ <div class="w-full flex sticky top-0 pt-2 bg-white z-10 space-x-2"><NInputv-model:value="searchPattern":placeholder="$t('schema-designer.search-tables')"><template #prefix>- <heroicons-outline:search class="w-4 h-auto text-gray-300" />+ <heroicons-outline:search class="h-auto text-gray-300" /></template></NInput>+ <button+ v-if="!readonly"+ class="text-gray-400 hover:text-gray-500 disabled:cursor-not-allowed"+ @click="handleCreateTable"+ >+ <heroicons-outline:plus class="w-4 h-auto" />+ </button></div><divclass="schema-designer-database-tree pb-2 overflow-y-auto h-full text-sm"@@ -31,6 +28,7 @@:block-line="true":data="treeData":pattern="searchPattern"+ :show-irrelevant-nodes="false":render-prefix="renderPrefix":render-label="renderLabel":render-suffix="renderSuffix"