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
6b98ab6a42
commit
f32205ec36
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
||||||
galleryCard.Values = append(galleryCard.Values, fieldValue)
|
galleryCard.Values = append(galleryCard.Values, fieldValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
fillGalleryCardCover(attrView, view, cardValues, &galleryCard, cardID, luteEngine)
|
fillAttributeViewGalleryCardCover(attrView, view, cardValues, &galleryCard, cardID, luteEngine)
|
||||||
ret.Cards = append(ret.Cards, &galleryCard)
|
ret.Cards = append(ret.Cards, &galleryCard)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -336,7 +336,7 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func fillGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues []*av.KeyValues, galleryCard *av.GalleryCard, cardID string, luteEngine *lute.Lute) {
|
func fillAttributeViewGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues []*av.KeyValues, galleryCard *av.GalleryCard, cardID string, luteEngine *lute.Lute) {
|
||||||
switch view.Gallery.CoverFrom {
|
switch view.Gallery.CoverFrom {
|
||||||
case av.CoverFromNone:
|
case av.CoverFromNone:
|
||||||
case av.CoverFromContentImage:
|
case av.CoverFromContentImage:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue