mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix problem with changing gap in flex layout
Some checks failed
_DEVELOP / build-bundle (push) Has been cancelled
_DEVELOP / build-docker (push) Has been cancelled
_STAGING / build-bundle (push) Has been cancelled
_STAGING / build-docker (push) Has been cancelled
Commit Message Check / Check Commit Message (push) Has been cancelled
Some checks failed
_DEVELOP / build-bundle (push) Has been cancelled
_DEVELOP / build-docker (push) Has been cancelled
_STAGING / build-bundle (push) Has been cancelled
_STAGING / build-docker (push) Has been cancelled
Commit Message Check / Check Commit Message (push) Has been cancelled
This commit is contained in:
committed by
Alonso Torres
parent
81f851cad4
commit
f64105ad08
@@ -719,8 +719,7 @@
|
|||||||
on-change'
|
on-change'
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps on-change wrap-type ids)
|
(mf/deps on-change wrap-type ids)
|
||||||
(fn [value attr event]
|
(fn [value event attr]
|
||||||
|
|
||||||
(if (or (string? value) (int? value))
|
(if (or (string? value) (int? value))
|
||||||
(on-change (= "nowrap" wrap-type) attr value event)
|
(on-change (= "nowrap" wrap-type) attr value event)
|
||||||
(do
|
(do
|
||||||
@@ -740,10 +739,10 @@
|
|||||||
:shape-ids ids}))))
|
:shape-ids ids}))))
|
||||||
|
|
||||||
on-row-gap-change
|
on-row-gap-change
|
||||||
(mf/use-fn (mf/deps on-change') #(on-change' % :row-gap))
|
(mf/use-fn (mf/deps on-change') #(on-change' %1 %2 :row-gap))
|
||||||
|
|
||||||
on-column-gap-change
|
on-column-gap-change
|
||||||
(mf/use-fn (mf/deps on-change') #(on-change' % :column-gap))
|
(mf/use-fn (mf/deps on-change') #(on-change' %1 %2 :column-gap))
|
||||||
|
|
||||||
on-focus-row-gap
|
on-focus-row-gap
|
||||||
(mf/use-fn (mf/deps on-gap-focus) #(on-gap-focus :row-gap))
|
(mf/use-fn (mf/deps on-gap-focus) #(on-gap-focus :row-gap))
|
||||||
@@ -785,7 +784,7 @@
|
|||||||
:data-type "row-gap"
|
:data-type "row-gap"
|
||||||
:data-wrap-type (d/name wrap-type)
|
:data-wrap-type (d/name wrap-type)
|
||||||
:on-focus on-focus-row-gap
|
:on-focus on-focus-row-gap
|
||||||
:on-change on-change'
|
:on-change on-row-gap-change
|
||||||
:on-blur on-gap-blur
|
:on-blur on-gap-blur
|
||||||
:nillable true
|
:nillable true
|
||||||
:min 0
|
:min 0
|
||||||
@@ -819,7 +818,7 @@
|
|||||||
:data-type "column-gap"
|
:data-type "column-gap"
|
||||||
:data-wrap-type (d/name wrap-type)
|
:data-wrap-type (d/name wrap-type)
|
||||||
:on-focus on-focus-column-gap
|
:on-focus on-focus-column-gap
|
||||||
:on-change on-change'
|
:on-change on-column-gap-change
|
||||||
:on-blur on-gap-blur
|
:on-blur on-gap-blur
|
||||||
:nillable true
|
:nillable true
|
||||||
:min 0
|
:min 0
|
||||||
|
|||||||
Reference in New Issue
Block a user