Move layers and assets to tabs

This commit is contained in:
alonso.torres 2022-02-01 13:02:31 +01:00
parent 8c3c9a8ca4
commit e352c70013
4 changed files with 24 additions and 39 deletions

View file

@ -50,8 +50,9 @@
:selected section}
[:& tab-element {:id :layers :title "Layers"}
[:& sitemap {:layout layout}]
[:& layers-toolbox]]
[:div.layers-tab
[:& sitemap {:layout layout}]
[:& layers-toolbox]]]
[:& tab-element {:id :assets :title "Library"}
[:& assets-toolbox]]]]]))

View file

@ -416,6 +416,7 @@
(defn scroll-into-view-if-needed!
([^js element]
(.log js/console "SCROLL INTO VIEW" element)
(when (some? element)
(.scrollIntoViewIfNeeded ^js element false)))