diff --git a/frontend/.gitignore b/frontend/.gitignore index a547bf3..55c738a 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -12,6 +12,9 @@ dist dist-ssr *.local +# Env +.env + # Editor directories and files .vscode/* !.vscode/extensions.json diff --git a/frontend/src/components/GameListItem.tsx b/frontend/src/components/GameListItem.tsx index 51e9be9..c3b8848 100644 --- a/frontend/src/components/GameListItem.tsx +++ b/frontend/src/components/GameListItem.tsx @@ -33,10 +33,10 @@ export default function GameListItem({ alt={title} loading="lazy" /> -
{year ?? "—"}
-{tags || "—"}
+{tags || "—"}
- {score == null ? "Not yet rated" : `${Number.isInteger(score) ? score.toFixed(0) : score.toFixed(1)}/10`} + {score == null ? "Not yet rated" : `${score/2}/5 stars`}
); diff --git a/frontend/src/pages/GamesGrid.tsx b/frontend/src/pages/GamesGrid.tsx index 6359375..a45ffdf 100644 --- a/frontend/src/pages/GamesGrid.tsx +++ b/frontend/src/pages/GamesGrid.tsx @@ -201,7 +201,8 @@ export default function GamesGrid() { ) || 1; const updatePageSize = () => { - setPageSize(Math.max(1, Math.floor(listEl.clientHeight / rowMinHeight))); + //setPageSize(Math.max(1, Math.floor(listEl.clientHeight / rowMinHeight))); + setPageSize(20); }; updatePageSize(); @@ -255,7 +256,7 @@ export default function GamesGrid() { onSortChange={updateSort} />