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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(connection): preserve database picker hover border
Freedomfa26a56ab02d
diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vueindex d0a2865be3..ab1e77bb49 100644--- a/apps/desktop/src/components/connection/ConnectionDialog.vue+++ b/apps/desktop/src/components/connection/ConnectionDialog.vue@@ -4344,8 +4344,8 @@ function openExternalUrl(url: string) {</DialogHeader><template v-if="dialogStep === 'select'">- <div class="flex min-h-0 flex-1 flex-col gap-4 overflow-hidden">- <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">+ <div class="flex min-h-0 flex-1 flex-col gap-4">+ <div class="flex flex-col gap-3 p-0.5 sm:flex-row sm:items-center sm:justify-between"><div class="flex items-center gap-2"><div class="flex shrink-0 rounded-lg border bg-muted/40 p-0.5"><Button type="button" size="icon-sm" :variant="dbPickerView === 'icon' ? 'secondary' : 'ghost'" :title="t('connection.iconView')" :aria-label="t('connection.iconView')" @click="dbPickerView = 'icon'">@@ -4381,7 +4381,7 @@ function openExternalUrl(url: string) {</button></nav>- <div class="min-w-0 flex-1 space-y-5 overflow-y-auto pr-2">+ <div class="min-w-0 flex-1 space-y-5 overflow-y-auto p-0.5 pr-2"><div v-if="isDbSearchActive" class="text-sm font-medium">{{ t("connection.searchResults") }}</div><section v-for="category in visibleDbCategories" :key="category.key" class="space-y-2">@@ -4392,7 +4392,7 @@ function openExternalUrl(url: string) {v-for="opt in category.options":key="opt.value"type="button"- class="connection-db-picker-option group flex min-h-24 flex-col items-center justify-center gap-2 rounded-xl border bg-background/70 p-3 text-center transition hover:-translate-y-0.5 hover:border-primary/40 hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ class="connection-db-picker-option group flex min-h-24 flex-col items-center justify-center gap-2 rounded-xl border bg-background/70 p-3 text-center transition hover:border-primary/40 hover:bg-muted/40 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring":class="selectedType === opt.value ? 'connection-db-picker-option--selected shadow-sm' : 'border-border'":aria-pressed="selectedType === opt.value"@click="onDbTypeChange(opt.value)"