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: make schema designer more condensed (#8143)
Tianzhou (天舟)19d64c8a0b72
diff --git a/frontend/src/components/SchemaDesigner/DatabaseTree.vue b/frontend/src/components/SchemaDesigner/DatabaseTree.vueindex 8271a9ef75..26872c59be 100644--- a/frontend/src/components/SchemaDesigner/DatabaseTree.vue+++ b/frontend/src/components/SchemaDesigner/DatabaseTree.vue@@ -3,6 +3,7 @@<div class="w-full flex sticky top-0 pt-2 bg-white z-10 space-x-2"><NInputv-model:value="searchPattern"+ size="small":placeholder="$t('schema-designer.search-tables')"><template #prefix>diff --git a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vueindex 5cad0e27bc..216fefe184 100644--- a/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue+++ b/frontend/src/components/SchemaDesigner/Panels/TableEditor.vue@@ -6,29 +6,30 @@v-if="!readonly"class="w-full flex justify-between items-center space-x-2">- <button- class="flex flex-row justify-center items-center border px-3 py-1 leading-6 text-sm text-gray-700 rounded cursor-pointer hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60"+ <NButton+ size="small":disabled="disableChangeTable"@click="handleAddColumn"><heroicons-outline:plus class="w-4 h-auto mr-1 text-gray-400" />{{ $t("schema-editor.actions.add-column") }}- </button>- <button- class="flex flex-row justify-center items-center border px-3 py-1 leading-6 text-sm text-gray-700 rounded cursor-pointer hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-60"+ </NButton>+ <NButton+ size="small":disabled="disableChangeTable"@click="state.showSchemaTemplateDrawer = true"><FeatureBadge feature="bb.feature.schema-template" /><heroicons-outline:plus class="w-4 h-auto mr-1 text-gray-400" />{{ $t("schema-editor.actions.add-from-template") }}- </button>+ </NButton></div></div><div class="flex justify-end items-center"><NInputv-model:value="searchPattern"class="!w-48"+ size="small":placeholder="$t('schema-editor.search-column')"><template #prefix>diff --git a/frontend/src/components/SchemaDesigner/TabsContainer.vue b/frontend/src/components/SchemaDesigner/TabsContainer.vueindex e468abddd7..50933aa413 100644--- a/frontend/src/components/SchemaDesigner/TabsContainer.vue+++ b/frontend/src/components/SchemaDesigner/TabsContainer.vue@@ -7,7 +7,7 @@<divv-for="tab in tabList":key="tab.id"- class="relative px-1 pl-2 py-2 rounded w-40 flex flex-row justify-between items-center shrink-0 border border-transparent cursor-pointer"+ class="relative px-1 pl-2 py-1 rounded w-40 flex flex-row justify-between items-center shrink-0 border border-transparent cursor-pointer":class="[`tab-${tab.id}`,tab.id === currentTab?.id && 'bg-white border-gray-200',