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(dataGrid): use single-char whitespace marker in cells

二丫讲梵ad9d9cad8fd5
diff --git a/apps/desktop/src/lib/dataGrid/cellValue.ts b/apps/desktop/src/lib/dataGrid/cellValue.ts
index 307a5c2b07..197d5494b2 100644
--- a/apps/desktop/src/lib/dataGrid/cellValue.ts
+++ b/apps/desktop/src/lib/dataGrid/cellValue.ts
@@ -48,6 +48,6 @@ export function limitDataGridCellDisplay(value: string, maxLength = DATA_GRID_CE
/** Visual-only cell text; never use whitespace markers for editing or serialization. */
export function gridCellDisplayValue(value: string, flatteningMultiLine: boolean, showWhitespace: boolean): string {
const text = firstLineCellDisplayValue(value, flatteningMultiLine);
- // Hair spaces keep adjacent dots legible in both DOM and Canvas rendering.
- return showWhitespace ? text.replace(/[ \t]/g, (character) => (character === " " ? "\u200a·\u200a" : "→")) : text;
+ // Map one space to one marker so monospace fonts preserve the original cell width.
+ return showWhitespace ? text.replace(/[ \t]/g, (character) => (character === " " ? "·" : "→")) : text;
}