mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 20:09:04 -05:00
🐛 Add change type of layout button
This commit is contained in:
parent
92dc8ae416
commit
dfd8ff96b7
1 changed files with 12 additions and 1 deletions
|
@ -1391,7 +1391,18 @@
|
|||
[:div {:class (stl/css :title-actions)}
|
||||
[:button {:class (stl/css :remove-layout)
|
||||
:on-click on-remove-layout}
|
||||
i/remove-refactor]]
|
||||
i/remove-refactor]
|
||||
|
||||
(when ^boolean grid-enabled?
|
||||
[:*
|
||||
[:button {:class (stl/css :add-layout)
|
||||
:on-click handle-show-layout-dropdown}
|
||||
i/menu-refactor]
|
||||
|
||||
[:& dropdown {:show show-layout-dropdown? :on-close handle-close-layout-options}
|
||||
[:div {:class (stl/css :layout-options)}
|
||||
[:button {:class (stl/css :layout-option) :on-click set-flex} "Flex layout"]
|
||||
[:button {:class (stl/css :layout-option) :on-click set-grid} "Grid layout"]]]])]
|
||||
|
||||
[:div {:class (stl/css :title-actions)}
|
||||
(if ^boolean grid-enabled?
|
||||
|
|
Loading…
Add table
Reference in a new issue