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): 完善大表预览提示条的关闭操作与 hover 文案

zipgfa9c26d56f0d
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue
index 43547ba7a1..38c6ee2e8a 100644
--- a/apps/desktop/src/components/grid/DataGrid.vue
+++ b/apps/desktop/src/components/grid/DataGrid.vue
@@ -14723,9 +14723,8 @@ useUpdateBlocker(() => (hasPendingChanges.value || hasPendingDataEditorDraft.val
<span class="data-grid-topbar-action-label" :class="{ 'data-grid-topbar-action-label--compact': compactDataGridToolbarActions }">{{ t("grid.tableDataPreviewLoadPageShort") }}</span>
</Button>
</TooltipTrigger>
- <TooltipContent side="bottom" class="max-w-sm">
- <p>{{ t("grid.tableDataPreviewNotice") }}</p>
- <p class="mt-1 opacity-80">{{ t("grid.tableDataPreviewLoadPageHint") }}</p>
+ <TooltipContent side="bottom" class="max-w-none">
+ <p class="whitespace-nowrap">{{ t("grid.tableDataPreviewLoadPageShortTitle") }}</p>
</TooltipContent>
</Tooltip>
<slot v-if="hasResultToolbarActionsSlot" name="result-toolbar-actions" :compact="compactDataGridToolbarActions" />
@@ -14897,18 +14896,21 @@ useUpdateBlocker(() => (hasPendingChanges.value || hasPendingDataEditorDraft.val
<button type="button" class="font-medium underline underline-offset-2 decoration-dotted hover:text-amber-900 disabled:opacity-50 dark:hover:text-amber-100" :disabled="tableDataFullTextLoading" @click="loadCurrentPageFullText">
{{ tableDataFullTextLoading ? t("grid.tableDataPreviewLoading") : t("grid.tableDataPreviewLoadPage") }}
</button>
- <button type="button" class="font-medium underline underline-offset-2 decoration-dotted hover:text-amber-900 dark:hover:text-amber-100" @click="hideTableDataPreviewNoticeForGood">
- {{ t("grid.tableDataPreviewDontShowAgain") }}
- </button>
- <button
- type="button"
- class="ml-auto shrink-0 rounded p-0.5 text-amber-600/70 hover:bg-amber-500/10 hover:text-amber-800 dark:text-amber-400/70 dark:hover:text-amber-200"
- :title="t('grid.tableDataPreviewDismiss')"
- :aria-label="t('grid.tableDataPreviewDismiss')"
- @click="dismissTableDataPreviewNotice"
- >
- <X class="h-3.5 w-3.5" />
- </button>
+ <div class="ml-auto flex shrink-0 items-center gap-1.5">
+ <button type="button" class="font-medium underline underline-offset-2 decoration-dotted hover:text-amber-900 dark:hover:text-amber-100" @click="hideTableDataPreviewNoticeForGood">
+ {{ t("grid.tableDataPreviewDontShowAgain") }}
+ </button>
+ <span class="h-3 w-px shrink-0 bg-amber-500/30 dark:bg-amber-400/30" aria-hidden="true" />
+ <button
+ type="button"
+ class="shrink-0 rounded p-0.5 text-amber-600/70 hover:bg-amber-500/10 hover:text-amber-800 dark:text-amber-400/70 dark:hover:text-amber-200"
+ :title="t('grid.tableDataPreviewDismiss')"
+ :aria-label="t('grid.tableDataPreviewDismiss')"
+ @click="dismissTableDataPreviewNotice"
+ >
+ <X class="h-3.5 w-3.5" />
+ </button>
+ </div>
</div>
<!-- Truncation warning banner -->
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index ace9671bb5..45691754e3 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -3352,8 +3352,8 @@ export default {
tableDataPreviewLoading: "Loading full text for this page…",
tableDataPreviewDismiss: "Don't show again",
tableDataPreviewDontShowAgain: "Never show again",
+ tableDataPreviewLoadPageShortTitle: "This table is large, so some long text wasn't loaded to keep queries fast.",
tableDataPreviewLoadPageShort: "Full text",
- tableDataPreviewLoadPageHint: "Click to load the full text for this page",
tableDataPreviewLoaded: "Loaded full text for {count} cells on this page",
tableDataPreviewLoadFailed: "Failed to load full text: {message}",
largeValueRowUnavailable: "The row could not be located in the database. The operation was canceled without using the preview value.",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index 290861a068..ee4e024e11 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -3310,8 +3310,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "Cargando el texto completo de la página actual…",
tableDataPreviewDismiss: "No volver a mostrar",
tableDataPreviewDontShowAgain: "No mostrar nunca",
+ tableDataPreviewLoadPageShortTitle: "La tabla es grande, así que parte del texto largo no se cargó para mantener el rendimiento de las consultas.",
tableDataPreviewLoadPageShort: "Texto completo",
- tableDataPreviewLoadPageHint: "Haz clic para cargar el texto completo de esta página",
tableDataPreviewLoaded: "Se cargaron {count} celdas con texto completo de la página actual",
tableDataPreviewLoadFailed: "Error al cargar el texto completo: {message}",
searchValuesOrCountTooltip: "Buscar valores o filtrar por cantidad (p. ej., >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index 2c3b813870..22e482b104 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -3183,8 +3183,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "Caricamento del testo completo della pagina corrente…",
tableDataPreviewDismiss: "Non mostrare più",
tableDataPreviewDontShowAgain: "Non mostrare mai più",
+ tableDataPreviewLoadPageShortTitle: "La tabella è grande, quindi parte del testo lungo non è stata caricata per mantenere le prestazioni delle query.",
tableDataPreviewLoadPageShort: "Testo completo",
- tableDataPreviewLoadPageHint: "Fai clic per caricare il testo completo di questa pagina",
tableDataPreviewLoaded: "Caricate {count} celle con testo completo nella pagina corrente",
tableDataPreviewLoadFailed: "Impossibile caricare il testo completo: {message}",
searchValuesOrCountTooltip: "Cerca valori o filtra per conteggio (ad es. >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index 870c972f76..853f71bb81 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -3207,8 +3207,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "現在のページの完全なテキストを読み込み中…",
tableDataPreviewDismiss: "今後表示しない",
tableDataPreviewDontShowAgain: "次回から表示しない",
+ tableDataPreviewLoadPageShortTitle: "テーブルが大きいため、クエリ性能を保つために長いテキストの一部が未読み込みです。",
tableDataPreviewLoadPageShort: "全文",
- tableDataPreviewLoadPageHint: "クリックでこのページの全文を読み込む",
tableDataPreviewLoaded: "現在のページの完全なテキストセルを {count} 個読み込みました",
tableDataPreviewLoadFailed: "完全なテキストの読み込みに失敗しました:{message}",
searchValuesOrCountTooltip: "値の検索または件数による絞り込み(例: >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index 6ecd51bde1..d6e5feaf68 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -3132,8 +3132,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "현재 페이지의 전체 텍스트를 불러오는 중…",
tableDataPreviewDismiss: "다시 표시하지 않음",
tableDataPreviewDontShowAgain: "다시는 표시 안 함",
+ tableDataPreviewLoadPageShortTitle: "테이블이 커서 쿼리 성능을 유지하기 위해 일부 긴 텍스트가 로드되지 않았습니다.",
tableDataPreviewLoadPageShort: "전체 텍스트",
- tableDataPreviewLoadPageHint: "클릭하여 이 페이지의 전체 텍스트 불러오기",
tableDataPreviewLoaded: "현재 페이지의 전체 텍스트 셀 {count}개를 불러왔습니다",
tableDataPreviewLoadFailed: "전체 텍스트를 불러오지 못했습니다: {message}",
searchValuesOrCountTooltip: "값 검색 또는 개수로 필터링(예: >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index 562467627a..f993dc6f89 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -3183,8 +3183,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "Carregando o texto completo da página atual…",
tableDataPreviewDismiss: "Não mostrar novamente",
tableDataPreviewDontShowAgain: "Nunca mais mostrar",
+ tableDataPreviewLoadPageShortTitle: "A tabela é grande, então parte do texto longo não foi carregada para manter o desempenho das consultas.",
tableDataPreviewLoadPageShort: "Texto completo",
- tableDataPreviewLoadPageHint: "Clique para carregar o texto completo desta página",
tableDataPreviewLoaded: "Carregadas {count} células de texto completo na página atual",
tableDataPreviewLoadFailed: "Falha ao carregar o texto completo: {message}",
searchValuesOrCountTooltip: "Pesquisar valores ou filtrar por quantidade (ex.: >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index bb1c9d5c7d..3ef66f8e3c 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -3267,8 +3267,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "Загрузка полного текста текущей страницы…",
tableDataPreviewDismiss: "Больше не показывать",
tableDataPreviewDontShowAgain: "Больше не показывать",
+ tableDataPreviewLoadPageShortTitle: "Таблица большая, поэтому часть длинного текста не загружена для сохранения производительности запросов.",
tableDataPreviewLoadPageShort: "Полный текст",
- tableDataPreviewLoadPageHint: "Нажмите, чтобы загрузить полный текст этой страницы",
tableDataPreviewLoaded: "Загружено {count} ячеек с полным текстом на текущей странице",
tableDataPreviewLoadFailed: "Не удалось загрузить полный текст: {message}",
searchValuesOrCountTooltip: "Поиск значений или фильтрация по количеству (например, >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/th.ts b/apps/desktop/src/i18n/locales/th.ts
index f5d53b1a0c..4bee2da02b 100644
--- a/apps/desktop/src/i18n/locales/th.ts
+++ b/apps/desktop/src/i18n/locales/th.ts
@@ -3490,8 +3490,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "กำลังโหลดข้อความฉบับเต็มของหน้าปัจจุบัน…",
tableDataPreviewDismiss: "ไม่แสดงอีก",
tableDataPreviewDontShowAgain: "ไม่ต้องแสดงอีกเลย",
+ tableDataPreviewLoadPageShortTitle: "ตารางมีขนาดใหญ่ เพื่อรักษาประสิทธิภาพการคิวรี ข้อความยาวบางส่วนจึงยังไม่ได้โหลด",
tableDataPreviewLoadPageShort: "ข้อความเต็ม",
- tableDataPreviewLoadPageHint: "คลิกเพื่อโหลดข้อความเต็มของหน้านี้",
tableDataPreviewLoaded: "โหลดเซลล์ข้อความฉบับเต็มในหน้าปัจจุบันแล้ว {count} เซลล์",
tableDataPreviewLoadFailed: "โหลดข้อความฉบับเต็มไม่สำเร็จ: {message}",
searchValuesOrCountTooltip: "ค้นหาค่าหรือกรองตามจำนวน (เช่น >1, >=2, =1, count>1)",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index bcfb2ff528..fc34eee5e7 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -3284,8 +3284,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "正在加载当前页完整文本…",
tableDataPreviewDismiss: "不再提示",
tableDataPreviewDontShowAgain: "不再提示",
+ tableDataPreviewLoadPageShortTitle: "当前表数据较大,为保证查询性能,部分长文本未加载。",
tableDataPreviewLoadPageShort: "完整文本",
- tableDataPreviewLoadPageHint: "点击加载当前页完整文本",
tableDataPreviewLoaded: "已加载当前页 {count} 个完整文本单元格",
tableDataPreviewLoadFailed: "加载完整文本失败:{message}",
largeValueRowUnavailable: "无法在数据库中定位该行,操作已取消,未使用预览值。",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index 4de81e65dd..298cb9b894 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -3193,8 +3193,8 @@ export default withEnglishFallback({
tableDataPreviewLoading: "正在載入目前頁面的完整文字…",
tableDataPreviewDismiss: "不再提示",
tableDataPreviewDontShowAgain: "不再提示",
+ tableDataPreviewLoadPageShortTitle: "目前資料表較大,為確保查詢效能,部分長文字未載入。",
tableDataPreviewLoadPageShort: "完整文字",
- tableDataPreviewLoadPageHint: "點擊載入目前頁面的完整文字",
tableDataPreviewLoaded: "已載入目前頁面 {count} 個完整文字儲存格",
tableDataPreviewLoadFailed: "載入完整文字失敗:{message}",
},