mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 01:07:18 +02:00
🐛 Fix boards name do not disappear in focus mode
This commit is contained in:
parent
318563858b
commit
ab86d5238a
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue