Cleanup spaces

This commit is contained in:
Patrick Alvin Alcala 2025-08-27 16:51:36 +08:00
parent 8d75642e6d
commit 970ffd1f1d

View file

@ -27,7 +27,7 @@ export default (props: Props) => {
return ( return (
<> <>
<picture > <picture>
<source srcset={imageSrc().replace(/\.webp$/, '.avif')} type="image/avif" /> <source srcset={imageSrc().replace(/\.webp$/, '.avif')} type="image/avif" />
<source srcset={imageSrc()} type="image/webp" /> <source srcset={imageSrc()} type="image/webp" />
<img src={imageSrc()} width={props.size} height="auto" decoding="async" loading="lazy" alt={props.alt} /> <img src={imageSrc()} width={props.size} height="auto" decoding="async" loading="lazy" alt={props.alt} />