mirror of
https://github.com/penpot/penpot.git
synced 2025-05-05 21:27:29 +02:00
🐛 Fix issue with recent files not showing
This commit is contained in:
parent
993530dbcb
commit
7d68d79fc3
3 changed files with 10 additions and 6 deletions
|
@ -59,6 +59,7 @@
|
||||||
- Fix issue with typographies panel cannot be collapsed [#707](https://github.com/penpot/penpot/issues/707)
|
- Fix issue with typographies panel cannot be collapsed [#707](https://github.com/penpot/penpot/issues/707)
|
||||||
- Fix text selection in comments [#745](https://github.com/penpot/penpot/issues/745)
|
- Fix text selection in comments [#745](https://github.com/penpot/penpot/issues/745)
|
||||||
- Update Work-Sans font [#744](https://github.com/penpot/penpot/issues/744)
|
- Update Work-Sans font [#744](https://github.com/penpot/penpot/issues/744)
|
||||||
|
- Fix issue with recent files not showing [Taiga #1493](https://tree.taiga.io/project/penpot/issue/1493)
|
||||||
|
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
window w as (partition by f.project_id order by f.modified_at desc)
|
window w as (partition by f.project_id order by f.modified_at desc)
|
||||||
order by f.modified_at desc
|
order by f.modified_at desc
|
||||||
)
|
)
|
||||||
select * from recent_files where row_num <= 6;")
|
select * from recent_files where row_num <= 10;")
|
||||||
|
|
||||||
(s/def ::team-id ::us/uuid)
|
(s/def ::team-id ::us/uuid)
|
||||||
(s/def ::profile-id ::us/uuid)
|
(s/def ::profile-id ::us/uuid)
|
||||||
|
|
|
@ -256,14 +256,17 @@
|
||||||
itemsize 290
|
itemsize 290
|
||||||
ratio (if (some? @width) (/ @width itemsize) 0)
|
ratio (if (some? @width) (/ @width itemsize) 0)
|
||||||
nitems (mth/floor ratio)
|
nitems (mth/floor ratio)
|
||||||
limit (if (and (some? @width)
|
limit (min 10 ;; Configuration in backend to return recent files
|
||||||
(> (* itemsize (count files)) @width)
|
(if (and (some? @width)
|
||||||
(< (- ratio nitems) 0.51))
|
(> (* itemsize (count files)) @width)
|
||||||
(dec nitems) ;; Leave space for the "show all" block
|
(< (- ratio nitems) 0.51))
|
||||||
nitems)
|
(dec nitems) ;; Leave space for the "show all" block
|
||||||
|
nitems))
|
||||||
|
|
||||||
limit (if dragging?
|
limit (if dragging?
|
||||||
(dec limit)
|
(dec limit)
|
||||||
limit)
|
limit)
|
||||||
|
|
||||||
limit (max 1 limit)]
|
limit (max 1 limit)]
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
|
Loading…
Add table
Reference in a new issue