fix: images for retina

This commit is contained in:
ner committed 2024-10-21 22:29:06 +03:00
1 parent 8473a104ca
commit dfe107eda2
3 files changed
+960 -216

No files matched your search

+4 -2
View File
@@ -23,8 +23,10 @@ const Poster: FC<Props> = ({ show, onClick, className, rounded, containerProps,
>
<div className='flex size-full'>
<picture>
<source srcSet={show.poster['1x']} media='(min-width: 601px)' />
<source srcSet={show.poster['2x']} media='(max-width: 600px)' />
<source srcSet={show.poster['1x']} media='(max-resolution: 191dpi)' />
<source srcSet={show.poster['1x']} media='(max-device-pixel-ratio: 1.99)' />
<source srcSet={show.poster['1.5x']} media='(min-resolution: 192dpi)' />
<source srcSet={show.poster['1.5x']} media='(min-device-pixel-ratio: 2)' />
<img
className={cn('size-full rounded-lg object-cover', rounded)}
loading={lazy ? 'lazy' : 'eager'}