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): center executed statement after execution
Melody Ruch3ecfb99f9a8e
diff --git a/apps/desktop/src/components/editor/QueryEditor.vue b/apps/desktop/src/components/editor/QueryEditor.vueindex d97537a977..c5d70bba42 100644--- a/apps/desktop/src/components/editor/QueryEditor.vue+++ b/apps/desktop/src/components/editor/QueryEditor.vue@@ -5608,8 +5608,14 @@ function openReplace(): boolean {function scrollCursorIntoView() {if (!view.value || !editorViewModule || !editorIsActive) return;const pos = view.value.state.selection.main.head;+ // Use "center" rather than "nearest": by the time this runs, the results pane has already+ // opened/resized and shrunk the editor viewport, so the cursor's old position is often no+ // longer visible. "nearest" then pins it right at the new viewport's edge (Fixes #5281: in a+ // long multi-statement file, the just-executed statement lands flush against the results pane+ // divider), which is exactly where it's hardest to see and re-click. Centering keeps it+ // comfortably visible so the user doesn't have to scroll to find/re-run it.view.value.dispatch({- effects: editorViewModule.EditorView.scrollIntoView(pos, { y: "nearest" }),+ effects: editorViewModule.EditorView.scrollIntoView(pos, { y: "center" }),});}