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(editor): keep editor pane full height in editor-only mode
t8y2d9723afceb69
diff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vueindex d67d13b812..9b7fd30540 100644--- a/apps/desktop/src/components/layout/ContentArea.vue+++ b/apps/desktop/src/components/layout/ContentArea.vue@@ -633,7 +633,10 @@ const mongoQueryResultSaveHandler = computed<CustomSaveHandler | undefined>(() =});const resultsPaneOpen = ref(false);const resultsPaneSize = ref(Number(safeLocalStorageGet("dbx-results-pane-size")) || DEFAULT_QUERY_RESULTS_PANE_SIZE);-const editorPaneSize = computed(() => (resultsPaneOpen.value ? 100 - resultsPaneSize.value : 100));+// In editor-only mode the results pane is never mounted in this splitpanes,+// so the editor pane must stay at 100%: a reactive size update alone does not+// re-normalize a single pane, and shrinking it would leave a blank dead zone.+const editorPaneSize = computed(() => (props.editorOnly || !resultsPaneOpen.value ? 100 : 100 - resultsPaneSize.value));const queryRunningElapsed = ref(0);function toggleResultsPane(): boolean {diff --git a/apps/desktop/src/components/layout/__tests__/ContentArea.outputView.spec.ts b/apps/desktop/src/components/layout/__tests__/ContentArea.outputView.spec.tsindex df9b2887cc..007dbadf12 100644--- a/apps/desktop/src/components/layout/__tests__/ContentArea.outputView.spec.ts+++ b/apps/desktop/src/components/layout/__tests__/ContentArea.outputView.spec.ts@@ -14,6 +14,16 @@ describe("ContentArea completed query output", () => {});});+describe("ContentArea editor-only split sizing", () => {+ it("keeps the editor pane at 100% in editor-only mode so no blank dead zone is left behind", () => {+ // The shared result surface renders results in its own workspace pane, so+ // this splitpanes has a single (editor) pane in editor-only mode. A purely+ // reactive size prop does not re-normalize a lone pane, so any value below+ // 100 would shrink the editor and leave the remainder as empty background.+ expect(contentAreaSource).toContain("const editorPaneSize = computed(() => (props.editorOnly || !resultsPaneOpen.value ? 100 : 100 - resultsPaneSize.value));");+ });+});+describe("ContentArea Mongo tab reuse", () => {it("remounts the document browser when the active tab changes collections", () => {expect(contentAreaSource).toContain(':key="`${activeTab.id}:${activeTab.sql}`"');