Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16051

Vanessa03050779a2b7
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss
index 5fda581e84..66985b5c67 100644
--- a/app/src/assets/scss/component/_typography.scss
+++ b/app/src/assets/scss/component/_typography.scss
@@ -142,6 +142,32 @@
flex-direction: column;
}
+ .callout {
+ padding: 8px;
+
+ &-info {
+ display: flex;
+ align-items: center;
+ }
+
+ &-icon {
+ width: 1.2em;
+ display: flex;
+ text-align: center;
+ height: 1.2em;
+ line-height: 1.2em;
+ }
+
+ &-img {
+ height: 1.2em;
+ width: 1.2em;
+ }
+
+ &-title {
+ margin-left: 8px;
+ }
+ }
+
h1,
h2,
h3,
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index ace850aca3..c5b0998671 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -781,6 +781,17 @@
.protyle-wysiwyg__embed .iframe:hover .protyle-action__drag {
display: none;
}
+
+ .callout-icon {
+ cursor: pointer;
+ padding: 4px;
+ border-radius: var(--b3-border-radius);
+ transition: var(--b3-background-transition);
+
+ &:hover {
+ background-color: var(--b3-list-hover);
+ }
+ }
}
.protyle-wysiwyg:not([contenteditable]),
diff --git a/app/src/assets/scss/util/_reset.scss b/app/src/assets/scss/util/_reset.scss
index 89d85ad1eb..fd47864d22 100644
--- a/app/src/assets/scss/util/_reset.scss
+++ b/app/src/assets/scss/util/_reset.scss
@@ -176,7 +176,7 @@ img {
-ms-interpolation-mode: bicubic;
overflow: hidden;
- &:not(.emoji) {
+ &:not(.emoji):not(.callout-img) {
font-size: 12px;
}
}