mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Database block loading animation https://github.com/siyuan-note/siyuan/issues/9416
This commit is contained in:
parent
1590913db7
commit
0ea9b8f5a7
1 changed files with 0 additions and 7 deletions
|
|
@ -209,7 +209,6 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
}
|
||||
|
||||
func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.AttributeView, err error) {
|
||||
start := time.Now()
|
||||
waitForSyncingStorages()
|
||||
|
||||
if avJSONPath := av.GetAttributeViewDataPath(avID); !gulu.File.IsExist(avJSONPath) {
|
||||
|
|
@ -290,12 +289,6 @@ func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.Attrib
|
|||
viewable.FilterRows()
|
||||
viewable.SortRows()
|
||||
viewable.CalcCols()
|
||||
|
||||
used := time.Since(start)
|
||||
if minSleep := used.Milliseconds() - 256; 0 > minSleep {
|
||||
// 补全加载时间到 256ms,避免前端动画闪烁干扰视觉
|
||||
time.Sleep(time.Duration(-minSleep) * time.Millisecond)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue