pc setup: hero falls back to the case present on the chosen day; add-ons (tilt pivot) are not counted as extra units in a slot card
All checks were successful
Deploy production / deploy (push) Successful in 1m6s

This commit is contained in:
2026-10-25 16:35:30 +00:00
parent ec4d3fd79e
commit 5a87a079eb
3 changed files with 9 additions and 4 deletions

View File

@@ -120,7 +120,9 @@
);
// ---- photos ----
const casePart = $derived(parts.find((p) => p.slot === 'case' && p.imageUrls.length));
const casePart = $derived(
parts.find((p) => p.slot === 'case' && p.imageUrls.length && presentAt(p, at))
);
const heroImage = $derived(data.photos[0]?.url ?? casePart?.imageUrls[0] ?? null);
const photoItem = $derived<LightboxItem>({
title: 'My setup',