Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix: use fixed column widths for type/length columns in table structure editor

t8y23f119cc9cf1f
diff --git a/apps/desktop/src/components/structure/TableStructureEditor.vue b/apps/desktop/src/components/structure/TableStructureEditor.vue
index 5f9d5ba557..7c17b5d1de 100644
--- a/apps/desktop/src/components/structure/TableStructureEditor.vue
+++ b/apps/desktop/src/components/structure/TableStructureEditor.vue
@@ -497,10 +497,10 @@ watch(
<th class="min-w-32 border-b border-r px-1.5 py-1.5 text-left">
{{ t("structureEditor.columnName") }}
</th>
- <th class="min-w-28 border-b border-r px-1.5 py-1.5 text-left">
+ <th class="w-36 border-b border-r px-1.5 py-1.5 text-left">
{{ t("structureEditor.dataType") }}
</th>
- <th class="min-w-20 border-b border-r px-1.5 py-1.5 text-left">
+ <th class="w-24 border-b border-r px-1.5 py-1.5 text-left">
{{ t("structureEditor.length") }}
</th>
<th class="w-16 whitespace-nowrap border-b border-r px-1.5 py-1.5 text-left">
@@ -549,13 +549,13 @@ watch(
:empty-text="t('structureEditor.noMatchingType')"
:loading-text="t('common.loading')"
:allow-custom="true"
- trigger-class="h-6 min-w-24 font-mono text-[11px]"
+ trigger-class="h-6 w-full font-mono text-[11px]"
@update:model-value="(v: string) => column.dataType = combineDataType(v, splitDataType(column.dataType).params)"
/>
<Input
v-else
:model-value="splitDataType(column.dataType).baseType"
- class="h-6 min-w-24 font-mono text-[11px]"
+ class="h-6 w-full font-mono text-[11px]"
disabled
/>
</td>