refactor: 专注模式宽度改用 0.4.1 官方 API(zenMaxWidth: '100%'),移除 CSS hack
This commit is contained in:
@@ -120,6 +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 — 100% 全宽(默认 960px 偏窄)
|
||||
zenMaxWidth: '100%',
|
||||
// v0.2.4 新增配置项
|
||||
syncScroll: true,
|
||||
wordWrap: true,
|
||||
|
||||
@@ -160,11 +160,6 @@ body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* v0.6.0: Zen 专注模式全宽 — 覆盖内置 820px(同优先级下运行时注入的样式会赢,用更高 specificity) */
|
||||
.metona-editor-wrapper .me-wrapper.me-zen .me-body {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user