From 8bcd8a2b2b4f6db39d263a7edad0c4aba2420b83 Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 4 Jun 2026 11:30:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(search):=20CSS=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E4=BB=8Emark=E6=94=B9=E4=B8=BA=E9=80=9A=E7=94=A8=E7=B1=BB?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ProseMirror Decoration.inline渲染的是而非, 导致mark.search-match-highlight选择器无法匹配,高亮不可见 --- src/renderer/styles/global.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/styles/global.css b/src/renderer/styles/global.css index a4a3b12..0839c2d 100644 --- a/src/renderer/styles/global.css +++ b/src/renderer/styles/global.css @@ -1579,24 +1579,24 @@ button:focus-visible, } /* Search match highlights */ -mark.search-match-highlight { +.search-match-highlight { background: rgba(255, 213, 0, 0.4); color: inherit; border-radius: 2px; padding: 0; } -mark.search-match-active { +.search-match-active { background: rgba(255, 150, 0, 0.6); outline: 1px solid rgba(255, 150, 0, 0.8); border-radius: 2px; } -:root.dark mark.search-match-highlight { +:root.dark .search-match-highlight { background: rgba(255, 213, 0, 0.25); } -:root.dark mark.search-match-active { +:root.dark .search-match-active { background: rgba(255, 180, 0, 0.4); outline-color: rgba(255, 180, 0, 0.6); }