mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
♻️ Gallery view renamed to Card view https://github.com/siyuan-note/siyuan/issues/15215
This commit is contained in:
parent
d7f56c2bb6
commit
1ab9b5c518
24 changed files with 141 additions and 85 deletions
|
|
@ -3234,7 +3234,7 @@ func AddAttributeViewKey(avID, keyID, keyName, keyType, keyIcon, previousKeyID s
|
|||
if nil != view.Table {
|
||||
if "" == previousKeyID {
|
||||
if av.LayoutTypeGallery == currentView.LayoutType {
|
||||
// 如果当前视图是画廊视图则添加到最后
|
||||
// 如果当前视图是卡片视图则添加到最后
|
||||
view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{BaseField: &av.BaseField{ID: key.ID}})
|
||||
} else {
|
||||
view.Table.Columns = append([]*av.ViewTableColumn{{BaseField: &av.BaseField{ID: key.ID}}}, view.Table.Columns...)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func checkAttrView(attrView *av.AttributeView, view *av.View) {
|
|||
// 视图类型不匹配时需要订正
|
||||
for i, v := range attrView.Views {
|
||||
if av.LayoutTypeGallery == v.LayoutType && nil == v.Gallery {
|
||||
// 切换为画廊视图时可能没有初始化画廊实例 https://github.com/siyuan-note/siyuan/issues/15122
|
||||
// 切换为卡片视图时可能没有初始化卡片实例 https://github.com/siyuan-note/siyuan/issues/15122
|
||||
if nil != v.Table {
|
||||
v.LayoutType = av.LayoutTypeTable
|
||||
changed = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue