mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 06:34:34 +00:00
Merge branch 'master' into feat/capacitor-new
This commit is contained in:
@@ -558,7 +558,7 @@
|
||||
(assoc state
|
||||
::id (str (random-uuid))
|
||||
::block block)))}
|
||||
[state _target-block {:keys [sidebar-properties? page-title?] :as opts}]
|
||||
[state _target-block {:keys [sidebar-properties?] :as opts}]
|
||||
(let [id (::id state)
|
||||
db-id (:db/id (::block state))
|
||||
block (db/sub-block db-id)
|
||||
@@ -577,10 +577,9 @@
|
||||
(or
|
||||
;; built-in
|
||||
(and (not (ldb/public-built-in-property? ent))
|
||||
;; TODO: Use ldb/built-in? when intermittent lazy loading issue fixed
|
||||
(get db-property/built-in-properties (:db/ident ent)))
|
||||
(ldb/built-in? ent))
|
||||
;; other position
|
||||
(when-not (or sidebar-properties? page-title?
|
||||
(when-not (or sidebar-properties?
|
||||
(and (:sidebar? opts) (= (:id opts) (str (:block/uuid block))))
|
||||
show-empty-and-hidden-properties?)
|
||||
(outliner-property/property-with-other-position? ent))
|
||||
@@ -604,8 +603,8 @@
|
||||
state-hide-empty-properties?
|
||||
(nil? (get block property-id))
|
||||
:else
|
||||
;; For sidebar and page properties, ignore these checks
|
||||
(when-not (or sidebar-properties? page-title?)
|
||||
;; sidebar properties ignore these checks
|
||||
(when-not sidebar-properties?
|
||||
(cond
|
||||
root-block?
|
||||
false
|
||||
|
||||
@@ -3901,6 +3901,7 @@
|
||||
(or
|
||||
(util/collapsed? block)
|
||||
(and (or (:list-view? config) (:ref? config))
|
||||
(or (:block/_parent block) (:block.temp/has-children? block))
|
||||
(integer? (:block-level config))
|
||||
(>= (:block-level config) (state/get-ref-open-blocks-level)))
|
||||
(and (or (:view? config) (:popup? config))
|
||||
|
||||
Reference in New Issue
Block a user