Skip to content

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

:bug: Honor database rich-text wrapping https://github.com/siyuan-note/siyuan/issues/11553

Daniel97c536055fd6
diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss
index c23f3b89a6..903c6dbf5a 100644
--- a/app/src/assets/scss/business/_av.scss
+++ b/app/src/assets/scss/business/_av.scss
@@ -1118,39 +1118,78 @@
&--rich {
display: block;
width: 100%;
- max-height: 1.625em;
overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
font: inherit;
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- blockquote,
- ul,
- ol,
- li,
- pre,
- .render-node {
- display: inline;
- min-height: 0;
- margin: 0;
- padding: 0;
- font-size: inherit;
- line-height: inherit;
- list-style: none;
+ .av__cell[data-wrap="true"] & {
+ white-space: normal;
+
+ p,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ li,
+ pre,
+ .render-node {
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+ font-size: inherit;
+ line-height: inherit;
+ }
+
+ blockquote,
+ ul,
+ ol {
+ margin: 0;
+ }
+
+ ul,
+ ol {
+ padding-left: 1.5em;
+ }
+
+ > :not(:first-child) {
+ margin-top: .25em;
+ }
}
- > :not(:first-child),
- li + li,
- li > :not(:first-child),
- blockquote > :not(:first-child) {
- margin-left: .5em;
+ .av__cell:not([data-wrap="true"]) & {
+ max-height: 1.625em;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+
+ p,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ blockquote,
+ ul,
+ ol,
+ li,
+ pre,
+ .render-node {
+ display: inline;
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+ font-size: inherit;
+ line-height: inherit;
+ list-style: none;
+ }
+
+ > :not(:first-child),
+ li + li,
+ li > :not(:first-child),
+ blockquote > :not(:first-child) {
+ margin-left: .5em;
+ }
}
}