mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-04-27 05:40:35 -05:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user