mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
7afd615f9a
commit
4ec8bf111b
1 changed files with 9 additions and 1 deletions
|
|
@ -443,7 +443,15 @@ func fillGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues
|
|||
if ast.NodeDocument == node.Type {
|
||||
node = node.FirstChild
|
||||
}
|
||||
galleryCard.CoverContent = renderBlockDOMByNode(node, luteEngine)
|
||||
|
||||
buf := strings.Builder{}
|
||||
for c := node; nil != c; c = c.Next {
|
||||
buf.WriteString(renderBlockDOMByNode(c, luteEngine))
|
||||
if 1024*4 < buf.Len() {
|
||||
break
|
||||
}
|
||||
}
|
||||
galleryCard.CoverContent = buf.String()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue