🐛 Fix boards name do not disappear in focus mode

This commit is contained in:
Pablo Alba 2022-10-21 17:00:01 +02:00
parent 318563858b
commit ab86d5238a
3 changed files with 9 additions and 3 deletions

View file

@ -330,7 +330,8 @@
:show-artboard-names? show-artboard-names?
:on-frame-enter on-frame-enter
:on-frame-leave on-frame-leave
:on-frame-select on-frame-select}]
:on-frame-select on-frame-select
:focus focus}]
(when show-prototypes?
[:& widgets/frame-flows

View file

@ -163,11 +163,15 @@
on-frame-enter (unchecked-get props "on-frame-enter")
on-frame-leave (unchecked-get props "on-frame-leave")
on-frame-select (unchecked-get props "on-frame-select")
frames (ctt/get-frames objects)]
frames (ctt/get-frames objects)
focus (unchecked-get props "focus")]
[:g.frame-titles
(for [frame frames]
(when (= (:parent-id frame) uuid/zero)
(when (and
(= (:parent-id frame) uuid/zero)
(or (empty? focus)
(contains? focus (:id frame))))
[:& frame-title {:key (dm/str "frame-title-" (:id frame))
:frame frame
:selected? (contains? selected (:id frame))