mirror of
https://github.com/penpot/penpot.git
synced 2026-07-28 00:48:22 +00:00
🐛 Fix margin input order is inconsistent with padding input order (#10797)
This commit is contained in:
parent
af51c897a8
commit
5ce206f904
@ -234,10 +234,10 @@
|
||||
(mf/use-fn (mf/deps on-focus) #(on-focus :m2))
|
||||
|
||||
on-focus-m3
|
||||
(mf/use-fn (mf/deps on-focus) #(on-focus :m1))
|
||||
(mf/use-fn (mf/deps on-focus) #(on-focus :m3))
|
||||
|
||||
on-focus-m4
|
||||
(mf/use-fn (mf/deps on-focus) #(on-focus :m2))
|
||||
(mf/use-fn (mf/deps on-focus) #(on-focus :m4))
|
||||
|
||||
on-change'
|
||||
(mf/use-fn
|
||||
@ -329,7 +329,6 @@
|
||||
:class (stl/css :bottom-margin-wrapper)
|
||||
:attr :m3
|
||||
:default nil
|
||||
:align :right
|
||||
:input-type :vertical-margin
|
||||
:property "Bottom margin"
|
||||
:nillable true
|
||||
@ -359,6 +358,7 @@
|
||||
:class (stl/css :left-margin-wrapper)
|
||||
:default nil
|
||||
:attr :m4
|
||||
:align :right
|
||||
:property "Left margin"
|
||||
:input-type :horizontal-margin
|
||||
:nillable true
|
||||
|
||||
@ -140,20 +140,20 @@
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.bottom-margin,
|
||||
.bottom-margin-wrapper {
|
||||
.right-margin,
|
||||
.right-margin-wrapper {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.left-margin,
|
||||
.left-margin-wrapper {
|
||||
.bottom-margin,
|
||||
.bottom-margin-wrapper {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.right-margin,
|
||||
.right-margin-wrapper {
|
||||
.left-margin,
|
||||
.left-margin-wrapper {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user