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): move transaction status near actions

t8y28c1ba16a2c0e
diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue
index 9c0ff466cd..865beb4b5f 100644
--- a/src/components/grid/DataGrid.vue
+++ b/src/components/grid/DataGrid.vue
@@ -1816,13 +1816,6 @@ defineExpose({
<span v-if="hasActiveFilter" class="text-xs text-muted-foreground shrink-0 px-1">
{{ displayItems.length }}/{{ totalFilterableRowCount }}
</span>
- <span
- v-if="transactionActive"
- class="text-xs text-emerald-600 dark:text-emerald-400 flex items-center gap-1 shrink-0 px-1"
- >
- <span class="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
- {{ t("grid.transactionActive") }}
- </span>
</div>
<template v-if="canUseWhereSearch">
@@ -1966,6 +1959,13 @@ defineExpose({
>
<Plus class="w-3 h-3 mr-1" /> {{ t("grid.addRow") }}
</Button>
+ <span
+ v-if="transactionActive"
+ class="flex shrink-0 items-center gap-1 px-1 text-xs text-emerald-600 dark:text-emerald-400"
+ >
+ <span class="h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse" />
+ {{ t("grid.transactionActive") }}
+ </span>
<Button
v-if="useTransaction"
:variant="transactionActive ? 'default' : 'secondary'"