Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database supports setting display field icons https://github.com/siyuan-note/siyuan/issues/15089

Daniel96a50a6a4926
diff --git a/kernel/av/layout_gallery.go b/kernel/av/layout_gallery.go
index 47df9fe76f..6837d6f518 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 描述了画廊实例卡片的结构。