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
All checks were successful
Deploy production / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user