0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Show margin/padding properties outside grid editor

This commit is contained in:
alonso.torres 2024-02-21 16:27:47 +01:00 committed by Andrey Antukh
parent 2942f28880
commit 764d15412f

View file

@ -1020,7 +1020,16 @@
:set-justify set-justify-grid}]
[:& justify-grid-row {:is-col? false
:justify-items grid-justify-content-row
:set-justify set-justify-grid}]]]
:set-justify set-justify-grid}]]
[:div {:class (stl/css :row)}
[:& gap-section {:gap-selected? gap-selected?
:on-change set-gap
:gap-value (:layout-gap values)}]]
[:div {:class (stl/css :row :padding-section)}
[:& padding-section {:values values
:on-change-style change-padding-type
:on-change on-padding-change}]]]
nil)))]))
(mf/defc grid-layout-edition
@ -1192,6 +1201,17 @@
[:button {:on-click handle-locate-grid
:class (stl/css :locate-button)}
i/locate-refactor]]
[:div {:class (stl/css :row)}
[:& gap-section {:gap-selected? gap-selected?
:on-change set-gap
:gap-value (:layout-gap values)}]]
[:div {:class (stl/css :row :padding-section)}
[:& padding-section {:values values
:on-change-style change-padding-type
:on-change on-padding-change}]]
[:div {:class (stl/css :row :grid-tracks-row)}
[:& grid-columns-row {:is-col? true
:expanded? @grid-columns-open?
@ -1215,13 +1235,4 @@
:remove-element remove-element
:reorder-track reorder-track
:hover-track hover-track
:on-select-track handle-select-track}]]
[:div {:class (stl/css :row)}
[:& gap-section {:gap-selected? gap-selected?
:on-change set-gap
:gap-value (:layout-gap values)}]]
[:div {:class (stl/css :row :padding-section)}
[:& padding-section {:values values
:on-change-style change-padding-type
:on-change on-padding-change}]]]))
:on-select-track handle-select-track}]]]))