mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
🐛 Fix problem when creating flex layout
This commit is contained in:
parent
cf3c3cf989
commit
a2fff7e74a
1 changed files with 4 additions and 3 deletions
|
@ -732,14 +732,12 @@
|
|||
(mf/use-callback
|
||||
(mf/deps on-add-layout)
|
||||
(fn []
|
||||
(st/emit! (dwsl/remove-layout ids))
|
||||
(on-add-layout :flex)))
|
||||
|
||||
set-grid
|
||||
(mf/use-callback
|
||||
(mf/deps on-add-layout)
|
||||
(fn []
|
||||
(st/emit! (dwsl/remove-layout ids))
|
||||
(on-add-layout :grid)))
|
||||
|
||||
saved-dir (:layout-flex-dir values)
|
||||
|
@ -934,7 +932,10 @@
|
|||
[:button {:class (stl/css :add-layout)
|
||||
:data-value :flex
|
||||
:on-click on-set-layout}
|
||||
i/add-refactor])])]]
|
||||
i/add-refactor])
|
||||
[:button {:class (stl/css :remove-layout)
|
||||
:on-click on-remove-layout}
|
||||
i/remove-refactor]])]]
|
||||
|
||||
(when (and open? has-layout?)
|
||||
(when (not= :multiple layout-type)
|
||||
|
|
Loading…
Add table
Reference in a new issue