From 96a50a6a49269089632227a7f2dfdbcfbfc31426 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 30 Jun 2025 15:11:37 +0800 Subject: [PATCH] :art: Database supports setting display field icons https://github.com/siyuan-note/siyuan/issues/15089 --- kernel/av/layout_gallery.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/kernel/av/layout_gallery.go b/kernel/av/layout_gallery.go index 47df9fe76..6837d6f51 100644 --- a/kernel/av/layout_gallery.go +++ b/kernel/av/layout_gallery.go @@ -94,12 +94,9 @@ type Gallery struct { CardAspectRatio CardAspectRatio `json:"cardAspectRatio"` // 卡片宽高比 CardSize CardSize `json:"cardSize"` // 卡片大小 FitImage bool `json:"fitImage"` // 是否适应封面图片大小 - ShowIcon bool `json:"showIcon"` // 是否显示字段图标 - WrapField bool `json:"wrapField"` // 是否换行字段内容 - - Fields []*GalleryField `json:"fields"` // 画廊字段 - Cards []*GalleryCard `json:"cards"` // 画廊卡片 - CardCount int `json:"cardCount"` // 画廊总卡片数 + Fields []*GalleryField `json:"fields"` // 画廊字段 + Cards []*GalleryCard `json:"cards"` // 画廊卡片 + CardCount int `json:"cardCount"` // 画廊总卡片数 } // GalleryCard 描述了画廊实例卡片的结构。