fix: some stuff

This commit is contained in:
Max Richter
2025-10-24 15:09:39 +02:00
parent 58670e66e9
commit 722182ece5
3 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ const link = translatePath(`/${collection}/${id.split("/")[0]}`);
---
<Card
classes={`max-h-250px grid gradient border-1 border-neutral overflow-hidden ${cover ? "grid-rows-[200px_1fr] xs:grid-rows-none xs:grid-cols-[1fr_200px]" : ""}`}>
classes={`grid gradient border-1 border-neutral overflow-hidden ${cover ? "grid-rows-[200px_1fr] xs:grid-rows-none xs:grid-cols-[1fr_200px]" : ""}`}>
<Card.Content classes="px-8 py-7 order-last xs:order-first">
{
(date || body || rating !== undefined) && (

View File

@@ -8,7 +8,7 @@
const iso = (d: string | Date) => {
const v = toDate(d);
return isNaN(v.getTime()) ? "" : v.toISOString();
return isNaN(v?.getTime()) ? "" : v.toISOString();
};
function formatRating(rating: string | number) {

Binary file not shown.