Skip to content

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

:art: Database table view supports synchronizing column width to other table views https://github.com/siyuan-note/siyuan/issues/11022

Danielf8c0778e1e8f
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 15f0c06769..eeec532ab0 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -70,7 +70,7 @@ func syncAttrViewTableColWidth(operation *Operation) (err error) {
case av.LayoutTypeTable:
for _, column := range view.Table.Columns {
if column.ID == operation.KeyID {
- width = operation.Data.(string)
+ width = column.Width
break
}
}