mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
🐛 Scroll in pages list when more than 4 elements
This commit is contained in:
parent
4e7a3c09a6
commit
55a7a34a1d
@ -211,3 +211,7 @@ $width-settings-bar: 16rem;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.element-list.pages-list {
|
||||||
|
max-height: 10rem;
|
||||||
|
}
|
||||||
|
|||||||
@ -136,7 +136,7 @@
|
|||||||
(let [pages (:pages file)
|
(let [pages (:pages file)
|
||||||
deletable? (> (count pages) 1)
|
deletable? (> (count pages) 1)
|
||||||
current-page-id (mf/use-ctx ctx/current-page-id)]
|
current-page-id (mf/use-ctx ctx/current-page-id)]
|
||||||
[:ul.element-list
|
[:ul.element-list.pages-list
|
||||||
[:& hooks/sortable-container {}
|
[:& hooks/sortable-container {}
|
||||||
(for [[index page-id] (d/enumerate pages)]
|
(for [[index page-id] (d/enumerate pages)]
|
||||||
[:& page-item-wrapper
|
[:& page-item-wrapper
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user