fix: children should be sorted

This commit is contained in:
Tienson Qin
2025-11-27 22:46:19 +08:00
parent df2c5b68e0
commit 3a0af1390d

View File

@@ -178,7 +178,8 @@
(let [block (db/sub-block id)
block-id (:block/uuid block)
block? (not (db/page? block))
full-children (:block/_parent block)
full-children (->> (:block/_parent block)
ldb/sort-by-order)
mobile-length-limit 50
[children more?] (if (and (> (count full-children) mobile-length-limit) (util/mobile?) journals?)
[(take mobile-length-limit full-children) true]