Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/11459

Vanessa84da3069fccb
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index 2803a98796..78da728e76 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -326,10 +326,6 @@
height: 100%;
}
- &:hover .protyle-action__drag {
- display: inline-block;
- }
-
.protyle-action__drag {
height: 30%;
width: 4px;
@@ -382,10 +378,6 @@
}
}
- & > [contenteditable="false"] > .img:hover .protyle-action__drag {
- display: none;
- }
-
&.iframe {
// https://ld246.com/article/1644827326901
// https://github.com/siyuan-note/siyuan/issues/4172
@@ -410,10 +402,6 @@
}
}
- &:hover .protyle-action__drag {
- display: inline-block;
- }
-
.protyle-action__drag {
height: 32px;
width: 4px;
@@ -595,12 +583,16 @@
}
}
+// 在思源中,不论只读模式还是预览点击图片都可以进行预览
+.protyle .img > span:nth-child(2) {
+ cursor: pointer;
+}
+
// 导出 html 不需要编辑样式
.protyle-wysiwyg[data-readonly="false"] {
span[data-type~="inline-math"],
span[data-type~="tag"],
.protyle-action__language,
- .img > span:nth-child(2),
.render-node {
cursor: pointer;
}
@@ -609,6 +601,12 @@
background-color: var(--b3-theme-surface-lighter);
}
+
+ .img:hover .protyle-action__drag,
+ .iframe:hover .protyle-action__drag {
+ display: inline-block;
+ }
+
.code-block .protyle-action {
-webkit-user-modify: read-only;
@@ -671,6 +669,15 @@
background-color: transparent;
}
+ .av__cell {
+ cursor: inherit;
+
+ &text--url,
+ &assetimg {
+ cursor: pointer;
+ }
+ }
+
.av__cell[data-block-id] > .block__icon[data-type="copy"] {
display: block;
}