0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐾 adds class to icon layers

This commit is contained in:
alonso.torres 2020-03-30 09:25:44 +02:00 committed by Andrey Antukh
parent c4caba9016
commit eaed5a580c

View file

@ -145,7 +145,8 @@
:class (dom/classnames
:selected selected?
:dragging-TODO (:dragging? dprops))}
[:div.element-list-body {:class (dom/classnames :selected selected?)
[:div.element-list-body {:class (dom/classnames :selected selected?
:icon-layer (= (:type item) :icon))
:on-click select-shape
:on-double-click #(dom/stop-propagation %)}
[:& element-icon {:shape item}]