diff --git a/app/components/ProfilePhoto.tsx b/app/components/ProfilePhoto.tsx index 89f94e1c..cb6263b0 100644 --- a/app/components/ProfilePhoto.tsx +++ b/app/components/ProfilePhoto.tsx @@ -3,8 +3,6 @@ import cloudinary from '~/utils/cloudinary' const ID = 'in-roermond.jpg' const VERSION = 1 -// approxiamte px value of w-40 -const SM_WIDTH_PX = 160 interface Props { className?: string @@ -26,7 +24,7 @@ export default function ProfilePhoto({ className }: Props) { version: VERSION, transformations: [ { - width: SM_WIDTH_PX, + width: 160, aspectRatio: '4:5', crop: 'fill', gravity: 'face', @@ -34,12 +32,12 @@ export default function ProfilePhoto({ className }: Props) { quality: 'auto', }, ], - })} ${SM_WIDTH_PX}w, + })} ${160}w, ${cloudinary(ID, { version: VERSION, transformations: [ { - width: SM_WIDTH_PX * 2, + width: 160 * 2, aspectRatio: '4:5', crop: 'fill', gravity: 'face', @@ -47,9 +45,9 @@ export default function ProfilePhoto({ className }: Props) { quality: 'auto', }, ], - })} ${SM_WIDTH_PX * 2}w + })} ${260 * 2}w `} - sizes={`${SM_WIDTH_PX}px`} + sizes={`${160}px`} />