From 1dd22be0a800e20cf757fc2082d0100797af4d0d Mon Sep 17 00:00:00 2001
From: thzxx
-
+
diff --git a/package.json b/package.json index 284f08f..6dce507 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "marklite", - "version": "0.4.2", + "version": "0.4.3", "description": "Lightweight Markdown Editor for Windows", "main": "./dist/main/index.js", "scripts": { diff --git a/src/renderer/styles/global.css b/src/renderer/styles/global.css index 3658881..507b956 100644 --- a/src/renderer/styles/global.css +++ b/src/renderer/styles/global.css @@ -128,6 +128,22 @@ body { height: 100%; } +/* FIX: Allow text selection in the preview pane. + global.css sets user-select:none on html/body to prevent + selection in UI chrome (toolbar, tabs, sidebar), but this + also blocked mouse-drag selection in the Markdown preview. + Override back to the browser default for the preview area. */ +.metona-editor-wrapper .me-preview, +.metona-editor-wrapper .me-preview * { + user-select: text; +} + +/* Also restore selection in the editor textarea (MetonaEditor + explicitly sets user-select:none on it in some themes) */ +.metona-editor-wrapper textarea { + user-select: text; +} + /* Tab Bar */ #tab-bar { height: 36px; diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 2d59ad3..736e152 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -1,5 +1,5 @@ // 共享常量 — 主进程和渲染进程共用 -export const APP_VERSION = 'v0.4.2' +export const APP_VERSION = 'v0.4.3' export const MAX_FILE_SIZE = 20 * 1024 * 1024 // 20MB export const ALLOWED_EXTENSIONS = ['.md', '.markdown', '.txt'] as const export const SKIP_DIRS = new Set([