mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 21:21:39 +02:00
✨ Fix viewer for new frames
This commit is contained in:
parent
cab2b8469e
commit
566dde21a5
7 changed files with 73 additions and 58 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns app.main.ui.viewer.interactions
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.geom.matrix :as gmt]
|
||||
[app.common.geom.point :as gpt]
|
||||
[app.common.pages.helpers :as cph]
|
||||
|
@ -127,8 +128,9 @@
|
|||
[:& dropdown {:show @show-dropdown?
|
||||
:on-close hide-dropdown}
|
||||
[:ul.dropdown.with-check
|
||||
(for [flow flows]
|
||||
[:li {:class (dom/classnames :selected (= (:id flow) (:id @current-flow)))
|
||||
(for [[index flow] (d/enumerate flows)]
|
||||
[:li {:key (dm/str "flow-" (:id flow) "-" index)
|
||||
:class (dom/classnames :selected (= (:id flow) (:id @current-flow)))
|
||||
:on-click #(select-flow flow)}
|
||||
[:span.icon i/tick]
|
||||
[:span.label (:name flow)]])]]])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue