mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 22:26:12 +02:00
🐛 Fix position absolute showing on first-level flex containers
This commit is contained in:
parent
8aa0e96377
commit
e9942e5527
1 changed files with 22 additions and 21 deletions
|
@ -211,28 +211,29 @@
|
||||||
"Flex element")]]
|
"Flex element")]]
|
||||||
|
|
||||||
[:div.element-set-content.layout-item-menu
|
[:div.element-set-content.layout-item-menu
|
||||||
[:div.layout-row
|
(when is-layout-child?
|
||||||
[:div.row-title.sizing "Position"]
|
[:div.layout-row
|
||||||
[:div.btn-wrapper
|
[:div.row-title.sizing "Position"]
|
||||||
[:div.absolute
|
[:div.btn-wrapper
|
||||||
[:button.behavior-btn.tooltip.tooltip-bottom
|
[:div.absolute
|
||||||
{:alt "Static"
|
[:button.behavior-btn.tooltip.tooltip-bottom
|
||||||
:class (dom/classnames :active (not (:layout-item-absolute values)))
|
{:alt "Static"
|
||||||
:on-click #(on-change-position :static)}
|
:class (dom/classnames :active (not (:layout-item-absolute values)))
|
||||||
"Static"]
|
:on-click #(on-change-position :static)}
|
||||||
[:button.behavior-btn.tooltip.tooltip-bottom
|
"Static"]
|
||||||
{:alt "Absolute"
|
[:button.behavior-btn.tooltip.tooltip-bottom
|
||||||
:class (dom/classnames :active (and (:layout-item-absolute values) (not= :multiple (:layout-item-absolute values))))
|
{:alt "Absolute"
|
||||||
:on-click #(on-change-position :absolute)}
|
:class (dom/classnames :active (and (:layout-item-absolute values) (not= :multiple (:layout-item-absolute values))))
|
||||||
"Absolute"]]
|
:on-click #(on-change-position :absolute)}
|
||||||
|
"Absolute"]]
|
||||||
|
|
||||||
[:div.tooltip.tooltip-bottom-left.z-index {:alt "z-index"}
|
[:div.tooltip.tooltip-bottom-left.z-index {:alt "z-index"}
|
||||||
i/layers
|
i/layers
|
||||||
[:> numeric-input
|
[:> numeric-input
|
||||||
{:placeholder "--"
|
{:placeholder "--"
|
||||||
:on-click #(dom/select-target %)
|
:on-click #(dom/select-target %)
|
||||||
:on-change #(on-change-z-index %)
|
:on-change #(on-change-z-index %)
|
||||||
:value (:layout-item-z-index values)}]]]]
|
:value (:layout-item-z-index values)}]]]])
|
||||||
|
|
||||||
(when (not (:layout-item-absolute values))
|
(when (not (:layout-item-absolute values))
|
||||||
[:*
|
[:*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue