From 26647ff755ff6467fa595b8682e9db85ce0a0c26 Mon Sep 17 00:00:00 2001 From: zipg Date: Mon, 6 Jul 2026 17:10:50 +0800 Subject: [PATCH] fix(ddl-viewer): fix selection style visibility Co-authored-by: zipg <4047349+zipg@users.noreply.github.com> --- .../src/components/objects/DdlViewDialog.vue | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/components/objects/DdlViewDialog.vue b/apps/desktop/src/components/objects/DdlViewDialog.vue index f23fd44c05..73993b40d0 100644 --- a/apps/desktop/src/components/objects/DdlViewDialog.vue +++ b/apps/desktop/src/components/objects/DdlViewDialog.vue @@ -111,6 +111,15 @@ async function initDdlEditor(content: string) { // which is visible below the content when the DDL is short. EditorView.theme({ "&.cm-focused": { outline: "none" }, + ".cm-content": { + cursor: "text", + userSelect: "text", + WebkitUserSelect: "text", + }, + ".cm-line": { + userSelect: "text", + WebkitUserSelect: "text", + }, }), EditorState.readOnly.of(true), ], @@ -197,7 +206,7 @@ function onClose() { {{ t("common.retry") }} -
+
@@ -212,3 +221,21 @@ function onClose() { + +