From 68e3467501c36f3700ca526934d815298ae9119a Mon Sep 17 00:00:00 2001 From: Tron Date: Fri, 3 May 2024 18:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E5=88=86=E5=89=B2=E7=BA=BF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=8D=E8=A6=81=E5=8D=A0=E6=BB=A1=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + style/editor.css | 14 ++++++++++---- style/export.css | 7 ++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b63dbb..13c97c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## v2.0.7 / 2024.05.03 - ⏪ 还是加回链接图标功能吧,集市的[链接图标]插件好像没有怎么更新维护了 +- 💄 分割线设置不要占满编辑器宽度 ## v2.0.6 / 2024.04.30 - ✨ 思源笔记预览模式直接复制到微信公众号适配 diff --git a/style/editor.css b/style/editor.css index 2d24a2e..1766e03 100644 --- a/style/editor.css +++ b/style/editor.css @@ -760,8 +760,14 @@ li[data-type='navigation-file'] .counter { /* ------------------------------------行内块字体样式:End-------------------------------------- */ /* --------------------------------------------------------------------------------------------- */ -/* 分割线 */ -.protyle-wysiwyg [data-node-id].hr > div:after { - height: 2px; - border-radius: 2px; + + +/* 分割线设置不要占满编辑器宽度 */ +.protyle-wysiwyg [data-node-id].hr { + margin: 20px 32%; +} +/* 分割线样式 */ +.protyle-wysiwyg [data-node-id].hr>div:after{ + height: 1px; + background-color: var(--b3-table-border-color) !important; } diff --git a/style/export.css b/style/export.css index b763fa2..cde2a6d 100644 --- a/style/export.css +++ b/style/export.css @@ -118,7 +118,12 @@ text-align:center; border: 1px solid rgb(224 239 249); border-radius: 7px !important; } - +/* 分割线 */ +.b3-typography hr { + border: 0; + border-bottom: 1px solid #d1d3d6; + margin: 21px 213px; +} /* ---------------------------------------导出pdf-----------------------------------*/