0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Restored z-index input

This commit is contained in:
alonso.torres 2024-01-05 15:32:14 +01:00
parent 62ffe67838
commit 77b886aa1a

View file

@ -353,7 +353,6 @@
(st/emit! (dwsl/update-layout-child ids {:layout-item-absolute (= value :absolute)})))))
;; Z Index
on-change-z-index
(mf/use-fn
(mf/deps ids)
@ -382,19 +381,18 @@
[:& radio-button {:value "absolute"
:id :absolute-position}]]]
(when is-absolute?
[:div {:class (stl/css :z-index-wrapper)
:title "z-index"}
[:div {:class (stl/css :z-index-wrapper)
:title "z-index"}
[:span {:class (stl/css :icon-text)}
"Z"]
[:> numeric-input*
{:className (stl/css :numeric-input)
:placeholder "--"
:on-focus #(dom/select-target %)
:on-change #(on-change-z-index %)
:nillable true
:value (:layout-item-z-index values)}]])])
[:span {:class (stl/css :icon-text)}
"Z"]
[:> numeric-input*
{:className (stl/css :numeric-input)
:placeholder "--"
:on-focus #(dom/select-target %)
:on-change #(on-change-z-index %)
:nillable true
:value (:layout-item-z-index values)}]]])
[:div {:class (stl/css :row)}
[:& element-behaviour {:fill? is-layout-child?