Skip to content

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

chore: tighten the gaps in schema panel (#7583)

Liu Ji21617200b4c0
diff --git a/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/DatabaseSchema.vue b/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/DatabaseSchema.vue
index 7093920c0d..0d90a03233 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/DatabaseSchema.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/DatabaseSchema.vue
@@ -33,7 +33,7 @@
</div>
</div>
- <div class="flex-1 p-1 overflow-y-auto flex flex-col gap-y-2">
+ <div class="flex-1 p-1 overflow-y-auto flex flex-col">
<template v-for="(schema, i) in availableSchemas" :key="i">
<div v-for="(table, j) in schema.tables" :key="j" class="text-sm">
<div
diff --git a/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/TableSchema.vue b/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/TableSchema.vue
index 022412aedd..53a2c35761 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/TableSchema.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/SchemaPanel/TableSchema.vue
@@ -31,15 +31,17 @@
</div>
<div
- class="grid py-1 pl-4 pr-4 overflow-y-auto gap-x-1 gap-y-2"
+ class="grid py-1 pl-4 pr-4 overflow-y-auto gap-x-1"
style="grid-template-columns: minmax(4rem, 2fr) minmax(4rem, 1fr)"
>
<template v-for="(column, index) in table.columns" :key="index">
- <div class="text-sm text-gray-600whitespace-pre-wrap break-words">
+ <div
+ class="text-sm leading-6 text-gray-600whitespace-pre-wrap break-words"
+ >
{{ column.name }}
</div>
<div
- class="text-right text-sm text-gray-400 overflow-x-hidden whitespace-nowrap"
+ class="text-right text-sm leading-6 text-gray-400 overflow-x-hidden whitespace-nowrap"
>
{{ column.type }}
</div>