From 8bee37cb89a8ab4d636964a0ca9cf5f7029995cc Mon Sep 17 00:00:00 2001 From: thzxx Date: Sun, 9 Aug 2026 20:45:37 +0800 Subject: [PATCH] =?UTF-8?q?release:=20v0.6.1=20=E2=80=94=20=E4=B8=93?= =?UTF-8?q?=E6=B3=A8=E6=A8=A1=E5=BC=8F=E5=AE=BD=E5=BA=A6=E5=AE=98=E6=96=B9?= =?UTF-8?q?=20API=20100%=20+=20=E7=89=88=E6=9C=AC=E5=8F=B7=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/renderer/components/Editor/Editor.tsx | 4 ++-- src/shared/constants.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7d8a8ff..43d01ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "marklite", - "version": "0.6.0", + "version": "0.6.1", "description": "Lightweight Markdown Editor for Windows", "main": "./dist/main/index.js", "scripts": { diff --git a/src/renderer/components/Editor/Editor.tsx b/src/renderer/components/Editor/Editor.tsx index 6865cbc..fd76b1e 100644 --- a/src/renderer/components/Editor/Editor.tsx +++ b/src/renderer/components/Editor/Editor.tsx @@ -120,8 +120,8 @@ export const Editor = React.memo(function Editor({ themeMode, onAppSave }: Edito plugins: EDITOR_PLUGINS, // v0.5.0: 启用 0.4.0 浮动格式工具栏(选中文本弹出格式化按钮) floatingToolbar: true, - // v0.6.1: 专注模式宽度使用 0.4.1 官方 API(数字为 px) - zenMaxWidth: 1200, + // v0.6.1: 专注模式宽度使用 0.4.1 官方 API — 100% 全宽(默认 960px 偏窄) + zenMaxWidth: '100%', // v0.2.4 新增配置项 syncScroll: true, wordWrap: true, diff --git a/src/shared/constants.ts b/src/shared/constants.ts index e01abe3..c623153 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -1,5 +1,5 @@ // 共享常量 — 主进程和渲染进程共用 -export const APP_VERSION = 'v0.6.0' +export const APP_VERSION = 'v0.6.1' export const MAX_FILE_SIZE = 20 * 1024 * 1024 // 20MB export const ALLOWED_EXTENSIONS = ['.md', '.markdown', '.txt'] as const export const SKIP_DIRS = new Set([