mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 00:07:19 +02:00
✨ Create grid from selection
This commit is contained in:
parent
02399add7a
commit
351f7fd1bb
17 changed files with 395 additions and 234 deletions
|
@ -101,6 +101,7 @@ body {
|
|||
:grid-template-rows
|
||||
:grid-template-columns
|
||||
:grid-template-areas
|
||||
:grid-auto-flow
|
||||
|
||||
;; Flex/grid self properties
|
||||
:flex-shrink
|
||||
|
|
|
@ -420,6 +420,11 @@
|
|||
justify-self (:justify-self cell)]
|
||||
(when (not= justify-self :auto) justify-self))))
|
||||
|
||||
(defmethod get-value :grid-auto-flow
|
||||
[_ shape _]
|
||||
(when (and (ctl/grid-layout? shape) (= (:layout-grid-dir shape) :column))
|
||||
"column"))
|
||||
|
||||
(defmethod get-value :default
|
||||
[property shape _]
|
||||
(get shape property))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue