diff --git a/pwa/src/app/browse/[gid]/[token]/page.tsx b/pwa/src/app/browse/[gid]/[token]/page.tsx index 5a3c54fd..98f2a805 100644 --- a/pwa/src/app/browse/[gid]/[token]/page.tsx +++ b/pwa/src/app/browse/[gid]/[token]/page.tsx @@ -39,11 +39,10 @@ function PreviewGrid({ return (
{thumbs.map((thumb) => { - // Scale based on width only — backend normalizes sprite heights. - const tw = thumb.width ?? 200 + // Scale X offset using height-based ratio — auto 100% forces sprite + // height to match the container, so X offset must use the same ratio. const th = thumb.height ?? 300 - const scale = cellSize.w ? cellSize.w / tw : 1 - const scaledH = th * scale + const hScale = cellSize.h ? cellSize.h / th : 1 return (