mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 19:41:39 +02:00
🐛 Fix libraries are truncated on 'Libraries' page
This commit is contained in:
parent
af114ee9d0
commit
201f6ed96a
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@
|
||||||
width (mf/use-state nil)
|
width (mf/use-state nil)
|
||||||
rowref (mf/use-ref)
|
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)
|
ratio (if (some? @width) (/ @width itemsize) 0)
|
||||||
nitems (mth/floor ratio)
|
nitems (mth/floor ratio)
|
||||||
limit (min 10 nitems)
|
limit (min 10 nitems)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue