Skip to content

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

改进引述块样式和高亮样式 (#13143)

Jeffrey Chen4ef73e6c6db9
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss
index 697b5cf1f3..4034b4448e 100644
--- a/app/src/assets/scss/component/_typography.scss
+++ b/app/src/assets/scss/component/_typography.scss
@@ -124,6 +124,8 @@
border-left: .25em solid var(--b3-theme-surface-lighter);
background-color: var(--b3-bq-background);
margin: 4px 0;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
}
.h1,
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index 037c55defa..a8368d58a8 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -55,6 +55,16 @@
}
}
+ &.bq {
+ &.protyle-wysiwyg--select,
+ &.protyle-wysiwyg--hl {
+ &::after {
+ left: -0.25em;
+ width: calc(100% + 0.25em);
+ }
+ }
+ }
+
.bq {
.dragover {
&__top:not(.av__row) {
@@ -173,6 +183,14 @@
padding-left: 16px;
padding-top: 0;
padding-bottom: 0;
+
+ &.protyle-wysiwyg--select,
+ &.protyle-wysiwyg--hl {
+ &::after {
+ left: 16px;
+ width: calc(100% - 16px);
+ }
+ }
}
}