release: v0.4.3 — 版本号更新与预览区文本选择修复

- 版本号从 0.4.2 升级至 0.4.3
- 修复预览区内容无法鼠标拖拽选择/复制的问题
- 根因:html/body 上的 user-select: none 级联到预览面板
- 修复:为 .me-preview 及其子元素恢复 user-select: text
This commit is contained in:
thzxx
2026-07-24 20:50:59 +08:00
parent 20b6d03617
commit 1dd22be0a8
6 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# MarkLite v0.4.2 — 架构设计文档 # MarkLite v0.4.3 — 架构设计文档
## 1. 项目概述 ## 1. 项目概述
+1 -1
View File
@@ -1,4 +1,4 @@
# MarkLite v0.4.2 — 开发环境配置指南 # MarkLite v0.4.3 — 开发环境配置指南
以下涵盖从 Node 版本管理、镜像源配置到 electron-builder 打包的全流程。 以下涵盖从 Node 版本管理、镜像源配置到 electron-builder 打包的全流程。
+1 -1
View File
@@ -14,7 +14,7 @@
<img src="https://img.shields.io/badge/TypeScript-5.6-3178C6?style=flat-square&logo=typescript" alt="TypeScript"> <img src="https://img.shields.io/badge/TypeScript-5.6-3178C6?style=flat-square&logo=typescript" alt="TypeScript">
<img src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react" alt="React"> <img src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react" alt="React">
<img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="License"> <img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="License">
<img src="https://img.shields.io/badge/Version-v0.4.2-orange?style=flat-square" alt="Version"> <img src="https://img.shields.io/badge/Version-v0.4.3-orange?style=flat-square" alt="Version">
</p> </p>
<p align="center"> <p align="center">
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "marklite", "name": "marklite",
"version": "0.4.2", "version": "0.4.3",
"description": "Lightweight Markdown Editor for Windows", "description": "Lightweight Markdown Editor for Windows",
"main": "./dist/main/index.js", "main": "./dist/main/index.js",
"scripts": { "scripts": {
+16
View File
@@ -128,6 +128,22 @@ body {
height: 100%; 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 */
#tab-bar { #tab-bar {
height: 36px; height: 36px;
+1 -1
View File
@@ -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 MAX_FILE_SIZE = 20 * 1024 * 1024 // 20MB
export const ALLOWED_EXTENSIONS = ['.md', '.markdown', '.txt'] as const export const ALLOWED_EXTENSIONS = ['.md', '.markdown', '.txt'] as const
export const SKIP_DIRS = new Set([ export const SKIP_DIRS = new Set([