Browse Source

enhance(mobile): collapse query blocks by default

Tienson Qin 4 months ago
parent
commit
39d75f5d6f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/handler/editor.cljs

+ 1 - 0
src/main/frontend/handler/editor.cljs

@@ -3856,6 +3856,7 @@
   (let [block (or (db/entity (:db/id block)) block)]
     (or
      (util/collapsed? block)
+     (and (util/mobile?) (ldb/class-instance? (entity-plus/entity-memoized (db/get-db) :logseq.class/Query) block))
      (and (or (:list-view? config) (:ref? config))
           (or (:block/_parent block) (:block.temp/has-children? block))
           (integer? (:block-level config))