diff --git a/frontend/src/components/Gallery/Skeleton.vue b/frontend/src/components/Gallery/Skeleton.vue index 43ebf1a94..782d20eb9 100644 --- a/frontend/src/components/Gallery/Skeleton.vue +++ b/frontend/src/components/Gallery/Skeleton.vue @@ -1,10 +1,26 @@ diff --git a/frontend/src/components/common/Game/Card/Skeleton.vue b/frontend/src/components/common/Game/Card/Skeleton.vue new file mode 100644 index 000000000..6b072d428 --- /dev/null +++ b/frontend/src/components/common/Game/Card/Skeleton.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/frontend/src/services/api/rom.ts b/frontend/src/services/api/rom.ts index 9e3cb0a35..e554f1faf 100644 --- a/frontend/src/services/api/rom.ts +++ b/frontend/src/services/api/rom.ts @@ -150,12 +150,15 @@ async function getRoms({ }); } +export const RECENT_ROMS_LIMIT = 15; +export const RECENT_PLAYED_ROMS_LIMIT = 15; + async function getRecentRoms(): Promise<{ data: GetRomsResponse }> { return api.get("/roms", { params: { order_by: "id", order_dir: "desc", - limit: 15, + limit: RECENT_ROMS_LIMIT, with_char_index: false, }, }); @@ -166,7 +169,7 @@ async function getRecentPlayedRoms(): Promise<{ data: GetRomsResponse }> { params: { order_by: "last_played", order_dir: "desc", - limit: 15, + limit: RECENT_PLAYED_ROMS_LIMIT, with_char_index: false, }, }); diff --git a/frontend/src/views/Gallery/Collection/BaseCollection.vue b/frontend/src/views/Gallery/Collection/BaseCollection.vue index 89df5fb65..fd69c4a79 100644 --- a/frontend/src/views/Gallery/Collection/BaseCollection.vue +++ b/frontend/src/views/Gallery/Collection/BaseCollection.vue @@ -234,8 +234,10 @@ onBeforeUnmount(() => {