Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: Improve mouse selection code blocks Fix https://github.com/siyuan-note/siyuan/issues/14644 (#14646)

Jeffrey Chenf60a8d641ad7
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index cb0b884a82..2d560ef844 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -536,8 +536,15 @@
transition: var(--b3-background-transition);
}
- &--hiderange ::selection {
- background-color: transparent;
+ &--hiderange {
+ ::selection {
+ background-color: transparent;
+ }
+
+ .hljs ::selection {
+ background-color: transparent;
+ color: inherit;
+ }
}
// https://github.com/siyuan-note/siyuan/issues/11589