mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 21:26:09 +02:00
✨ Move layers and assets to tabs
This commit is contained in:
parent
8c3c9a8ca4
commit
e352c70013
4 changed files with 24 additions and 39 deletions
|
@ -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]]]]]))
|
||||
|
|
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue