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(desktop): tighten frontend transitions
t8y2e3b4aac84cad
diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vueindex 6ae3a452ea..72d3dc5a8f 100644--- a/apps/desktop/src/components/editor/AiAssistant.vue+++ b/apps/desktop/src/components/editor/AiAssistant.vue@@ -719,7 +719,7 @@ const messageRenderer = computed(() => {<span>{{ t("ai.reasoningProcess") }}</span></button><div- class="overflow-hidden transition-all duration-200 ease-in-out"+ class="overflow-hidden transition-[max-height,opacity] duration-200 ease-in-out":style="{maxHeight: expandedReasoning.has(i) || msg.isThinking ? '20000px' : '0px',opacity: expandedReasoning.has(i) || msg.isThinking ? '1' : '0',diff --git a/apps/desktop/src/components/editor/EditorSearchPanel.vue b/apps/desktop/src/components/editor/EditorSearchPanel.vueindex 539ad0ebc8..8338254b43 100644--- a/apps/desktop/src/components/editor/EditorSearchPanel.vue+++ b/apps/desktop/src/components/editor/EditorSearchPanel.vue@@ -213,7 +213,7 @@ defineExpose({ openSearch, openReplace, closeSearch });</script><template>- <Transition enter-active-class="transition-all duration-150" leave-active-class="transition-all duration-100" enter-from-class="opacity-0 -translate-y-1" leave-to-class="opacity-0 -translate-y-1">+ <Transition enter-active-class="transition-[transform,opacity] duration-150" leave-active-class="transition-[transform,opacity] duration-100" enter-from-class="opacity-0 -translate-y-1" leave-to-class="opacity-0 -translate-y-1"><div v-if="searchVisible" class="absolute top-1 right-4 z-[9999] isolate flex flex-col gap-1 rounded-md border bg-popover p-1.5 text-popover-foreground shadow-lg"><div class="flex items-center gap-0.5"><button class="w-5 h-5 flex items-center justify-center rounded text-muted-foreground hover:bg-accent hover:text-foreground" :title="showReplace ? t('editor.search.collapseReplace') : t('editor.search.expandReplace')" @click="showReplace = !showReplace">diff --git a/apps/desktop/src/components/export/DatabaseExportDialog.vue b/apps/desktop/src/components/export/DatabaseExportDialog.vueindex 18885a0e4d..acc59c5706 100644--- a/apps/desktop/src/components/export/DatabaseExportDialog.vue+++ b/apps/desktop/src/components/export/DatabaseExportDialog.vue@@ -457,7 +457,7 @@ watch(</div><div class="w-full bg-muted rounded-full h-2 overflow-hidden">- <div class="h-full rounded-full transition-all duration-300" :class="exportError ? 'bg-destructive' : exportCancelled ? 'bg-yellow-500' : 'bg-primary'" :style="{ width: `${progressPercent}%` }" />+ <div class="h-full rounded-full transition-[width] duration-300" :class="exportError ? 'bg-destructive' : exportCancelled ? 'bg-yellow-500' : 'bg-primary'" :style="{ width: `${progressPercent}%` }" /></div><div class="text-xs text-muted-foreground">diff --git a/apps/desktop/src/components/export/ExportProgressDialog.vue b/apps/desktop/src/components/export/ExportProgressDialog.vueindex f9d5e5c14e..c59f8c0be3 100644--- a/apps/desktop/src/components/export/ExportProgressDialog.vue+++ b/apps/desktop/src/components/export/ExportProgressDialog.vue@@ -61,7 +61,7 @@ const rowsText = computed(() => {<!-- Progress bar --><div class="w-full bg-muted rounded-full h-2 overflow-hidden">- <div v-if="status === 'Running' || status === 'Writing'" class="h-full bg-primary rounded-full transition-all duration-300" :class="{ 'animate-pulse': !totalRows }" :style="{ width: totalRows ? `${progressPercent}%` : '50%' }" />+ <div v-if="status === 'Running' || status === 'Writing'" class="h-full bg-primary rounded-full transition-[width] duration-300" :class="{ 'animate-pulse': !totalRows }" :style="{ width: totalRows ? `${progressPercent}%` : '50%' }" /><div v-else-if="status === 'Done'" class="h-full bg-green-500 rounded-full" style="width: 100%" /></div>diff --git a/apps/desktop/src/components/export/ExportProgressPopover.vue b/apps/desktop/src/components/export/ExportProgressPopover.vueindex 0e829f23ee..5b7ec03d4f 100644--- a/apps/desktop/src/components/export/ExportProgressPopover.vue+++ b/apps/desktop/src/components/export/ExportProgressPopover.vue@@ -102,7 +102,7 @@ function toggleShowAll() {<!-- Progress bar --><div v-if="isActive(task.status)" class="w-full bg-muted rounded-full h-1.5 overflow-hidden">- <div class="h-full bg-primary rounded-full transition-all duration-300" :class="{ 'animate-pulse': !task.totalRows }" :style="{ width: task.totalRows ? `${progressPercent(task.totalRows, task.rowsExported)}%` : '50%' }" />+ <div class="h-full bg-primary rounded-full transition-[width] duration-300" :class="{ 'animate-pulse': !task.totalRows }" :style="{ width: task.totalRows ? `${progressPercent(task.totalRows, task.rowsExported)}%` : '50%' }" /></div><div v-else-if="task.status === 'Done'" class="w-full bg-muted rounded-full h-1.5 overflow-hidden"><div class="h-full bg-green-500 rounded-full" style="width: 100%" />diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vueindex 6bfd403140..e46c0eb397 100644--- a/apps/desktop/src/components/grid/DataGrid.vue+++ b/apps/desktop/src/components/grid/DataGrid.vue@@ -6685,7 +6685,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {{{ t("grid.tableInfoNoResults") }}</div><table v-else class="w-full text-xs">- <thead class="sticky top-0 bg-muted/80 backdrop-blur text-muted-foreground">+ <thead class="sticky top-0 bg-muted text-muted-foreground"><tr class="border-b"><th class="text-left font-medium px-3 py-2">{{ t("grid.columnName") }}</th><th class="text-left font-medium px-3 py-2">{{ t("grid.columnType") }}</th>@@ -7218,7 +7218,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {<div class="min-h-0 flex-1 overflow-auto rounded border"><table class="w-full min-w-[640px] text-xs">- <thead class="sticky top-0 z-10 bg-muted/80 text-muted-foreground backdrop-blur">+ <thead class="sticky top-0 z-10 bg-muted text-muted-foreground"><tr class="border-b"><th class="w-16 px-3 py-2 text-left font-medium">{{ t("grid.fieldIndex") }}</th><th class="w-56 px-3 py-2 text-left font-medium">{{ t("grid.columnName") }}</th>@@ -7319,7 +7319,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {<div class="min-h-0 flex-1 overflow-auto rounded border"><table class="w-full min-w-[500px] text-xs">- <thead class="sticky top-0 z-10 bg-muted/80 text-muted-foreground backdrop-blur">+ <thead class="sticky top-0 z-10 bg-muted text-muted-foreground"><tr class="border-b"><th class="w-24 px-3 py-2 text-left font-medium">{{ t("grid.rowNumber") }}</th><th class="px-3 py-2 text-left font-medium">{{ t("grid.cellValue") }}</th>diff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vueindex 8aa77704ec..1ced1c0dcf 100644--- a/apps/desktop/src/components/layout/ContentArea.vue+++ b/apps/desktop/src/components/layout/ContentArea.vue@@ -454,7 +454,7 @@ defineExpose({ focusSearch, refreshData, handleModRTarget });@close-column-panel="onHandleCloseColumnPanel"/><ColumnInfoPanel v-if="showColumnInfo" :columns="columnInfoColumns" :loading="columnInfoLoading" :error="columnInfoError" @close="closeColumnInfo" />- <Button v-if="hasQueryOutput && !resultsPaneOpen" variant="secondary" size="sm" class="absolute bottom-3 right-3 z-20 h-7 gap-1.5 rounded-full border bg-background/95 px-3 text-xs shadow-lg backdrop-blur hover:bg-accent" @click="resultsPaneOpen = true">+ <Button v-if="hasQueryOutput && !resultsPaneOpen" variant="secondary" size="sm" class="absolute bottom-3 right-3 z-20 h-7 gap-1.5 rounded-full border bg-background/95 px-3 text-xs shadow-lg hover:bg-accent" @click="resultsPaneOpen = true"><ChevronUp class="h-3.5 w-3.5" />{{ t("editor.showResultsPane") }}</Button>diff --git a/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue b/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vueindex a5755eb4d2..f60e1d0181 100644--- a/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue+++ b/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue@@ -500,7 +500,7 @@ watch(</div><div class="w-full bg-muted rounded-full h-2 overflow-hidden">- <div class="h-full rounded-full transition-all duration-300" :class="terminalStatus === 'error' ? 'bg-destructive' : terminalStatus === 'cancelled' ? 'bg-yellow-500' : 'bg-primary'" :style="{ width: `${progressPercent}%` }" />+ <div class="h-full rounded-full transition-[width] duration-300" :class="terminalStatus === 'error' ? 'bg-destructive' : terminalStatus === 'cancelled' ? 'bg-yellow-500' : 'bg-primary'" :style="{ width: `${progressPercent}%` }" /></div><div class="grid grid-cols-2 sm:grid-cols-4 gap-2 text-xs">diff --git a/apps/desktop/src/components/transfer/DataTransferDialog.vue b/apps/desktop/src/components/transfer/DataTransferDialog.vueindex 0c8ebd740f..dddc2f50e4 100644--- a/apps/desktop/src/components/transfer/DataTransferDialog.vue+++ b/apps/desktop/src/components/transfer/DataTransferDialog.vue@@ -548,7 +548,7 @@ const overallRowsLabel = computed(() => (knownTotalRows.value > 0 ? `${formatRow<div class="w-full bg-muted rounded-full h-2 overflow-hidden"><div- class="h-full rounded-full transition-all duration-300"+ class="h-full rounded-full transition-[width] duration-300":class="overallError ? 'bg-destructive' : overallCancelled ? 'bg-yellow-500' : overallDone && failedTables ? 'bg-amber-500' : 'bg-primary'":style="{width: `${selectedTables.size ? (completedTables / selectedTables.size) * 100 : 0}%`,diff --git a/apps/desktop/src/components/ui/badge/index.ts b/apps/desktop/src/components/ui/badge/index.tsindex d8541205bb..c0a8e597c2 100644--- a/apps/desktop/src/components/ui/badge/index.ts+++ b/apps/desktop/src/components/ui/badge/index.ts@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";export { default as Badge } from "./Badge.vue";export const badgeVariants = cva(- "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",+ "h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-colors has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",{variants: {variant: {diff --git a/apps/desktop/src/components/ui/button/index.ts b/apps/desktop/src/components/ui/button/index.tsindex 9a7220bb19..41990432ee 100644--- a/apps/desktop/src/components/ui/button/index.ts+++ b/apps/desktop/src/components/ui/button/index.ts@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";export { default as Button } from "./Button.vue";export const buttonVariants = cva(- "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants: {variant: {diff --git a/apps/desktop/src/components/ui/switch/Switch.vue b/apps/desktop/src/components/ui/switch/Switch.vueindex 40cd7b3c4b..7f7760dd9c 100644--- a/apps/desktop/src/components/ui/switch/Switch.vue+++ b/apps/desktop/src/components/ui/switch/Switch.vue@@ -32,7 +32,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);v-bind="forwarded":class="cn(- 'data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50',+ 'data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50',props.class,)"diff --git a/apps/desktop/src/components/ui/tabs/TabsTrigger.vue b/apps/desktop/src/components/ui/tabs/TabsTrigger.vueindex 1c44a74b63..3fc64444b9 100644--- a/apps/desktop/src/components/ui/tabs/TabsTrigger.vue+++ b/apps/desktop/src/components/ui/tabs/TabsTrigger.vue@@ -17,7 +17,7 @@ const forwardedProps = useForwardProps(delegatedProps);data-slot="tabs-trigger":class="cn(- 'gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*=size-])]:size-4 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 relative inline-flex h-[calc(100%-1px)] flex-1 select-none items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0',+ 'gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*=size-])]:size-4 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 relative inline-flex h-[calc(100%-1px)] flex-1 select-none items-center justify-center whitespace-nowrap text-foreground/60 transition-colors group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0','group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent','data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground','after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100',diff --git a/apps/desktop/src/styles/globals.css b/apps/desktop/src/styles/globals.cssindex 1030d10462..cf9d75ddcc 100644--- a/apps/desktop/src/styles/globals.css+++ b/apps/desktop/src/styles/globals.css@@ -343,8 +343,8 @@ body.dbx-table-reference-dragging * {/* Frosted glass menus */.cn-menu-translucent {- backdrop-filter: blur(16px) saturate(1.6) !important;- -webkit-backdrop-filter: blur(16px) saturate(1.6) !important;+ backdrop-filter: blur(8px) saturate(1.6) !important;+ -webkit-backdrop-filter: blur(8px) saturate(1.6) !important;background-color: rgb(255 255 255 / 0.95) !important;background-color: oklch(1 0 0 / 0.95) !important;box-shadow: none !important;diff --git a/apps/desktop/src/types/database.ts b/apps/desktop/src/types/database.tsindex 4b4b8ac428..753d3eaced 100644--- a/apps/desktop/src/types/database.ts+++ b/apps/desktop/src/types/database.ts@@ -94,6 +94,7 @@ export interface ConnectionConfig {redis_sentinel_password?: string;redis_sentinel_tls?: boolean;redis_cluster_nodes?: string;+ redis_key_separator?: string;etcd_endpoints?: string;one_time?: boolean;read_only?: boolean;