mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
4ec8bf111b
commit
472be34bdf
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
package sql
|
package sql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -444,7 +445,7 @@ func fillGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues
|
||||||
node = node.FirstChild
|
node = node.FirstChild
|
||||||
}
|
}
|
||||||
|
|
||||||
buf := strings.Builder{}
|
buf := bytes.Buffer{}
|
||||||
for c := node; nil != c; c = c.Next {
|
for c := node; nil != c; c = c.Next {
|
||||||
buf.WriteString(renderBlockDOMByNode(c, luteEngine))
|
buf.WriteString(renderBlockDOMByNode(c, luteEngine))
|
||||||
if 1024*4 < buf.Len() {
|
if 1024*4 < buf.Len() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue