fix(web): dedup bboxCropStyle util + apply to explore cards #660
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/discovery-thumbnail-crop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Extract duplicated
bboxCropStylefunction into shared `$lib/utils/discoveryThumbnail.ts` utility module. Apply bbox-based thumbnail cropping to explore page discovery cards.Changes
Algorithm note
Spec file `docs/superpowers/specs/2026-07-20-discovery-thumbnail-crop-design.md` line 89 has `Math.min` (typo — wrong direction, would never zoom in). Used `Math.max` per Team Chef. Spec file needs separate correction (follow-up).
Verification