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'> <div className='flex size-full'>
<picture> <picture>
<source srcSet={show.poster['1x']} media='(min-width: 601px)' /> <source srcSet={show.poster['1x']} media='(max-resolution: 191dpi)' />
<source srcSet={show.poster['2x']} media='(max-width: 600px)' /> <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 <img
className={cn('size-full rounded-lg object-cover', rounded)} className={cn('size-full rounded-lg object-cover', rounded)}
loading={lazy ? 'lazy' : 'eager'} loading={lazy ? 'lazy' : 'eager'}
+949 -207
View File
File diff suppressed because it is too large. Load diff
+7 -7
View File
@@ -19,43 +19,43 @@
"@radix-ui/react-toast": "^1.2.2", "@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle": "^1.0.3",
"@tanstack/react-query": "^5.59.15", "@tanstack/react-query": "^5.59.15",
"@tanstack/react-query-devtools": "^5.59.15",
"@vidstack/react": "^1.12.11", "@vidstack/react": "^1.12.11",
"axios": "^1.4.0", "axios": "^1.4.0",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"clsx": "^2.0.0", "clsx": "^2.0.0",
"cmdk": "^0.2.1", "cmdk": "^0.2.1",
"eslint": "8.45.0",
"eslint-config-next": "^14.2.7",
"jotai": "^2.2.2", "jotai": "^2.2.2",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"lucide-react": "^0.453.0", "lucide-react": "^0.453.0",
"media-icons": "^1.1.5", "media-icons": "^1.1.5",
"next": "^14.2.7", "next": "^14.2.7",
"node-html-parser": "^6.1.5",
"parse-torrent-title": "^1.4.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-modal-promise": "^1.0.2", "react-modal-promise": "^1.0.2",
"react-virtuoso": "^4.10.1", "react-virtuoso": "^4.10.1",
"tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.6",
"typescript": "5.1.6", "typescript": "5.1.6",
"vaul": "^0.8.9" "vaul": "^0.8.9"
}, },
"devDependencies": { "devDependencies": {
"@tanstack/react-query-devtools": "^5.59.15",
"@types/js-cookie": "^3.0.3", "@types/js-cookie": "^3.0.3",
"@types/node": "20.4.4", "@types/node": "20.4.4",
"@types/react": "18.2.15", "@types/react": "18.2.15",
"@types/react-dom": "18.2.7", "@types/react-dom": "18.2.7",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"eslint": "8.45.0",
"eslint-config-next": "^14.2.7",
"eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-tailwindcss": "^3.17.4", "eslint-plugin-tailwindcss": "^3.17.4",
"husky": "^9.1.6", "husky": "^9.1.6",
"node-html-parser": "^6.1.5",
"parse-torrent-title": "^1.4.0",
"postcss": "^8.4.27", "postcss": "^8.4.27",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.3.3", "tailwindcss": "^3.3.3",
"tailwindcss-animate": "^1.0.6",
"tailwindcss-touch": "^1.0.1" "tailwindcss-touch": "^1.0.1"
} }
} }