0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix libraries are truncated on 'Libraries' page

This commit is contained in:
Pablo Alba 2023-06-26 12:56:58 +02:00 committed by Andrés Moya
parent 3ea5b1a8de
commit e61aaaecf3

View file

@ -38,7 +38,9 @@
width (mf/use-state nil)
rowref (mf/use-ref)
itemsize (if (>= @width 1030) 280 230)
itemsize (if components-v2
350
(if (>= @width 1030) 280 230))
ratio (if (some? @width) (/ @width itemsize) 0)
nitems (mth/floor ratio)
limit (min 10 nitems)