mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 17:51:38 +02:00
✨ Visual adjustments
This commit is contained in:
parent
cebda20dd4
commit
0274567d83
9 changed files with 48 additions and 5 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
(ns app.main.ui.components.shape-icon
|
||||
(:require
|
||||
[app.common.types.shape.layout :as ctl]
|
||||
[app.main.ui.icons :as i]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
|
@ -13,7 +14,15 @@
|
|||
(mf/defc element-icon
|
||||
[{:keys [shape main-instance?] :as props}]
|
||||
(case (:type shape)
|
||||
:frame i/artboard
|
||||
:frame (cond
|
||||
(and (ctl/layout? shape) (ctl/col? shape))
|
||||
i/layout-columns
|
||||
|
||||
(and (ctl/layout? shape) (ctl/row? shape))
|
||||
i/layout-rows
|
||||
|
||||
:else
|
||||
i/artboard)
|
||||
:image i/image
|
||||
:line i/line
|
||||
:circle i/circle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue