0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

💄 Change sidebar order

This commit is contained in:
elhombretecla 2021-06-30 09:14:23 +02:00 committed by Andrés Moya
parent 4c84b18bb6
commit 61b7c279d6
2 changed files with 8 additions and 7 deletions

View file

@ -419,9 +419,10 @@
[:option {:value "topbottom"} (tr "workspace.options.constraints.topbottom")] [:option {:value "topbottom"} (tr "workspace.options.constraints.topbottom")]
[:option {:value "center"} (tr "workspace.options.constraints.center")] [:option {:value "center"} (tr "workspace.options.constraints.center")]
[:option {:value "scale"} (tr "workspace.options.constraints.scale")]]] [:option {:value "scale"} (tr "workspace.options.constraints.scale")]]]
(when first-level? ;; (when first-level?
[:div.row-flex ;; [:div.row-flex
[:div.fix-when {:class (dom/classnames :active (:fixed-scroll values)) ;; [:div.fix-when {:class (dom/classnames :active (:fixed-scroll values))
:on-click on-fixed-scroll-clicked} ;; :on-click on-fixed-scroll-clicked}
i/pin ;; i/pin
[:span (tr "workspace.options.constraints.fix-when-scrolling")]]])]]]])])) ;; [:span (tr "workspace.options.constraints.fix-when-scrolling")]]])
]]]])]))

View file

@ -40,8 +40,8 @@
[:div.options [:div.options
[:& measures-menu {:type type :ids measure-ids :values measure-values}] [:& measures-menu {:type type :ids measure-ids :values measure-values}]
[:& layer-menu {:type type :ids layer-ids :values layer-values}]
[:& component-menu {:ids comp-ids :values comp-values}] [:& component-menu {:ids comp-ids :values comp-values}]
[:& layer-menu {:type type :ids layer-ids :values layer-values}]
(when-not (empty? fill-ids) (when-not (empty? fill-ids)
[:& fill-menu {:type type :ids fill-ids :values fill-values}]) [:& fill-menu {:type type :ids fill-ids :values fill-values}])