Skip to content

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

:lipstick: https://github.com/siyuan-note/siyuan/issues/13201

Vanessa2d114d4c3b1b
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index c5169b9baf..aa9118deb4 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -69,21 +69,20 @@
&.list {
padding: 0;
+ display: flex;
+ flex-direction: column;
- .dragover {
- &__top:not(.av__row) {
- box-shadow: 0 -3px 0 var(--b3-theme-primary-lighter), inset 0 1px 0 var(--b3-theme-primary-lighter) !important;
- }
+ & > .li:first-child {
+ margin-top: 0;
+ }
- &__bottom:not(.av__row) {
- box-shadow: 0 3px 0 var(--b3-theme-primary-lighter), inset 0 -1px 0 var(--b3-theme-primary-lighter) !important;
- }
+ & > div:nth-last-child(2) {
+ margin-bottom: 0;
}
}
&.li {
padding: 0;
- margin: 0;
display: flex;
flex-direction: column;
@@ -98,6 +97,19 @@
border-left-color: var(--b3-scroll-color);
}
+ & > [data-node-id] {
+ margin-left: 34px;
+ padding-right: 0;
+ }
+
+ & > div:nth-child(2) {
+ margin-top: 0;
+ }
+
+ & > div:nth-last-child(2) {
+ margin-bottom: 0;
+ }
+
&[fold="1"] {
&:before {
content: none;
@@ -155,24 +167,6 @@
border-radius: var(--b3-border-radius);
}
}
-
- & > div:nth-child(2) {
- margin-top: 0;
- }
-
- & > div:nth-last-child(2) {
- margin-bottom: 0;
- }
-
- & > [data-node-id] {
- margin-left: 34px;
- padding-right: 0;
-
- &.code-block {
- margin-top: 4px;
- margin-bottom: 4px;
- }
- }
}
&.sb {