mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 04:11:48 +02:00
🐛 Restored z-index input
This commit is contained in:
parent
62ffe67838
commit
77b886aa1a
1 changed files with 11 additions and 13 deletions
|
@ -353,7 +353,6 @@
|
||||||
(st/emit! (dwsl/update-layout-child ids {:layout-item-absolute (= value :absolute)})))))
|
(st/emit! (dwsl/update-layout-child ids {:layout-item-absolute (= value :absolute)})))))
|
||||||
|
|
||||||
;; Z Index
|
;; Z Index
|
||||||
|
|
||||||
on-change-z-index
|
on-change-z-index
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps ids)
|
(mf/deps ids)
|
||||||
|
@ -382,19 +381,18 @@
|
||||||
[:& radio-button {:value "absolute"
|
[:& radio-button {:value "absolute"
|
||||||
:id :absolute-position}]]]
|
:id :absolute-position}]]]
|
||||||
|
|
||||||
(when is-absolute?
|
[:div {:class (stl/css :z-index-wrapper)
|
||||||
[:div {:class (stl/css :z-index-wrapper)
|
:title "z-index"}
|
||||||
:title "z-index"}
|
|
||||||
|
|
||||||
[:span {:class (stl/css :icon-text)}
|
[:span {:class (stl/css :icon-text)}
|
||||||
"Z"]
|
"Z"]
|
||||||
[:> numeric-input*
|
[:> numeric-input*
|
||||||
{:className (stl/css :numeric-input)
|
{:className (stl/css :numeric-input)
|
||||||
:placeholder "--"
|
:placeholder "--"
|
||||||
:on-focus #(dom/select-target %)
|
:on-focus #(dom/select-target %)
|
||||||
:on-change #(on-change-z-index %)
|
:on-change #(on-change-z-index %)
|
||||||
:nillable true
|
:nillable true
|
||||||
:value (:layout-item-z-index values)}]])])
|
:value (:layout-item-z-index values)}]]])
|
||||||
|
|
||||||
[:div {:class (stl/css :row)}
|
[:div {:class (stl/css :row)}
|
||||||
[:& element-behaviour {:fill? is-layout-child?
|
[:& element-behaviour {:fill? is-layout-child?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue