From 7b85fe4607c4e3cf5edc3bab88faf2b4cf96fa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=AD=9F?= <3111696955@qq.com> Date: Thu, 31 Jul 2025 14:20:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E4=BC=98=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=95=8C=E9=9D=A2=E5=92=8C=E4=BB=A3=E7=A0=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"清空"按钮文本改为"返回",提高用户友好性 - 优化代码预览显示,移除代码块内部滚动条,提高可读性 --- biji-qianduan/src/components/HomePage.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/biji-qianduan/src/components/HomePage.vue b/biji-qianduan/src/components/HomePage.vue index bd525a9..6958910 100644 --- a/biji-qianduan/src/components/HomePage.vue +++ b/biji-qianduan/src/components/HomePage.vue @@ -39,7 +39,7 @@
- 清空 + 返回 编辑 删除 返回 @@ -731,6 +731,20 @@ const handleExportMd = () => { .dark-theme .vditor-toolbar__item--current { background-color: var(--primary-color-light) !important; } + +/* 移除预览中代码块的内部滚动条 */ +.markdown-preview .vditor-reset pre { + max-height: none !important; + overflow: visible !important; +} + +.markdown-preview .vditor-reset pre code { + max-height: none !important; + overflow-y: visible !important; + word-break: break-all !important; + white-space: pre-wrap !important; + display: block; +}