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(grid): prevent where filter field overlap

t8y2e6bccddc2fa5
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue
index d494d251ec..6351a3fffb 100644
--- a/apps/desktop/src/components/grid/DataGrid.vue
+++ b/apps/desktop/src/components/grid/DataGrid.vue
@@ -4269,7 +4269,9 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
(value: any) => updateStructuredFilterRule(rule.id, { columnName: String(value) })
"
>
- <SelectTrigger class="h-8 min-w-0 text-xs">
+ <SelectTrigger
+ class="h-8 w-full min-w-0 overflow-hidden text-xs [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate"
+ >
<SelectValue :placeholder="t('grid.filterBuilderColumn')" />
</SelectTrigger>
<SelectContent position="popper">
@@ -4289,7 +4291,9 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
(value: any) => updateStructuredFilterRule(rule.id, { mode: value as FilterMode })
"
>
- <SelectTrigger class="h-8 min-w-0 text-xs">
+ <SelectTrigger
+ class="h-8 w-full min-w-0 overflow-hidden text-xs [&_[data-slot=select-value]]:min-w-0 [&_[data-slot=select-value]]:truncate"
+ >
<SelectValue />
</SelectTrigger>
<SelectContent position="popper">
@@ -4315,9 +4319,9 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
/>
<div
v-else
- class="flex h-8 items-center rounded-md border border-dashed px-2 text-xs text-muted-foreground"
+ class="flex h-8 min-w-0 items-center overflow-hidden rounded-md border border-dashed px-2 text-xs text-muted-foreground"
>
- {{ t("grid.filterBuilderNoValue") }}
+ <span class="truncate">{{ t("grid.filterBuilderNoValue") }}</span>
</div>
<Button