0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Scroll in pages list when more than 4 elements

This commit is contained in:
alonso.torres 2021-01-13 19:13:46 +01:00
parent 4e7a3c09a6
commit 55a7a34a1d
2 changed files with 5 additions and 1 deletions

View file

@ -211,3 +211,7 @@ $width-settings-bar: 16rem;
}
}
}
.element-list.pages-list {
max-height: 10rem;
}

View file

@ -136,7 +136,7 @@
(let [pages (:pages file)
deletable? (> (count pages) 1)
current-page-id (mf/use-ctx ctx/current-page-id)]
[:ul.element-list
[:ul.element-list.pages-list
[:& hooks/sortable-container {}
(for [[index page-id] (d/enumerate pages)]
[:& page-item-wrapper