From 1dd22be0a800e20cf757fc2082d0100797af4d0d Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 24 Jul 2026 20:50:59 +0800 Subject: [PATCH] =?UTF-8?q?release:=20v0.4.3=20=E2=80=94=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E6=9B=B4=E6=96=B0=E4=B8=8E=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E5=8C=BA=E6=96=87=E6=9C=AC=E9=80=89=E6=8B=A9=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 版本号从 0.4.2 升级至 0.4.3 - 修复预览区内容无法鼠标拖拽选择/复制的问题 - 根因:html/body 上的 user-select: none 级联到预览面板 - 修复:为 .me-preview 及其子元素恢复 user-select: text --- DESIGN.md | 2 +- DEVSETUP.md | 2 +- README.md | 2 +- package.json | 2 +- src/renderer/styles/global.css | 16 ++++++++++++++++ src/shared/constants.ts | 2 +- 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index b78f268..52488f3 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -1,4 +1,4 @@ -# MarkLite v0.4.2 — 架构设计文档 +# MarkLite v0.4.3 — 架构设计文档 ## 1. 项目概述 diff --git a/DEVSETUP.md b/DEVSETUP.md index 72f7e18..2d92b9f 100644 --- a/DEVSETUP.md +++ b/DEVSETUP.md @@ -1,4 +1,4 @@ -# MarkLite v0.4.2 — 开发环境配置指南 +# MarkLite v0.4.3 — 开发环境配置指南 以下涵盖从 Node 版本管理、镜像源配置到 electron-builder 打包的全流程。 diff --git a/README.md b/README.md index 2ae5333..1aea490 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ TypeScript React License - Version + Version

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([