fix(web): prefer precomputed face crop on person detail page #687
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/detail-page-thumbnail-priority"
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
Fixes thumbnail priority ordering on the person detail page. Previously, the CSS bbox crop (
representativeBbox+representativeThumbnailUrl) was checked first, even when a precomputed cropped thumbnail (representativeCroppedThumbnailUrl) was available. This caused unnecessary client-side cropping and inconsistent rendering compared to the explore page.What changed
Swapped the first two conditions in
DiscoveryInstanceDetail.svelteso thatrepresentativeCroppedThumbnailUrlis checked first — matching the explore page behavior. The CSS bbox crop fallback is preserved for domains without precomputed crops.Checklist
svelte-checkpasses (0 errors, pre-existing warnings only)apps/web/src/lib/components/DiscoveryInstanceDetail.svelte