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。

feat(desktop): expand window drag regions

t8y258b8552316a7
diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vue
index 37725fcbd8..2453f610e5 100644
--- a/apps/desktop/src/components/editor/AiAssistant.vue
+++ b/apps/desktop/src/components/editor/AiAssistant.vue
@@ -674,7 +674,9 @@ const messageRenderer = computed(() => {
class="flex items-center gap-2 border-b px-3 shrink-0"
:class="settings.editorSettings.appLayout === 'classic' ? 'h-9' : 'h-10'"
>
- <span class="flex-1 truncate text-xs font-medium">{{ chatTitle }}</span>
+ <span class="flex flex-1 self-stretch items-center truncate text-xs font-medium" data-tauri-drag-region>
+ {{ chatTitle }}
+ </span>
<Button variant="ghost" size="icon" class="h-6 w-6" @click="startNewChat" :title="t('ai.newChat')">
<MessageSquarePlus class="h-3.5 w-3.5" />
</Button>
diff --git a/apps/desktop/src/components/layout/AppSidebar.vue b/apps/desktop/src/components/layout/AppSidebar.vue
index afb384cd4b..64868e224e 100644
--- a/apps/desktop/src/components/layout/AppSidebar.vue
+++ b/apps/desktop/src/components/layout/AppSidebar.vue
@@ -57,8 +57,10 @@ defineExpose({ focusSearch });
class="flex items-center px-3 text-xs font-medium text-muted-foreground border-b bg-muted/20"
:class="classicLayout ? 'h-9' : 'h-10'"
>
- {{ t("sidebar.connections") }}
- <span class="flex-1" />
+ <span class="flex self-stretch items-center truncate" data-tauri-drag-region>{{
+ t("sidebar.connections")
+ }}</span>
+ <span class="flex-1 self-stretch" data-tauri-drag-region />
<Tooltip>
<TooltipTrigger as-child>
<Button variant="ghost" size="icon" class="h-5 w-5" @click="refreshTree">
diff --git a/apps/desktop/src/components/layout/AppTabBar.vue b/apps/desktop/src/components/layout/AppTabBar.vue
index 100e2344ff..0bb13bbf2d 100644
--- a/apps/desktop/src/components/layout/AppTabBar.vue
+++ b/apps/desktop/src/components/layout/AppTabBar.vue
@@ -301,6 +301,7 @@ const dataTabsMenuContainerClass = computed(() =>
<X class="h-3 w-3" />
</button>
</div>
+ <div class="min-w-8 flex-1 self-stretch" data-tauri-drag-region />
</div>
<div
v-if="canScrollRight"