Images : retour au chargement habituel (affiches cassées sur iPhone)
deploy / deploy (push) Successful in 44s
deploy / deploy (push) Successful in 44s
Les images TMDB / AniList étaient demandées en mode CORS (crossOrigin) depuis 425bff8. Sur iPhone, les
affiches déjà en mémoire, reçues sans en-tête CORS, étaient alors refusées : bannière, affiches et vignettes
vides. Retour à l'ancien fonctionnement (caches posters / backdrops, réponses opaques acceptées) ;
les caches posters-v2 / backdrops-v2 de l'essai sont supprimés au lancement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
14 files changed
+24
-44
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { Check, Loader2, PenLine, Search, X } from 'lucide-react'
|
||||
import { imgCors } from '../../lib/tmdbImage'
|
||||
import { useEffect, useRef, useState, type ReactNode } from 'react'
|
||||
import { t } from '../../i18n'
|
||||
import { useBackToClose } from '../../lib/backNav'
|
||||
@@ -101,7 +100,7 @@ export default function AddTitle({
|
||||
<li key={r.externalId}>
|
||||
<button data-prefetch={r.externalId} onClick={() => (mine ? onOpenItem(mine) : onPick(r))} className="flex w-full items-center gap-3 py-3 text-start active:bg-surface lg:border-b lg:border-line">
|
||||
{r.thumb ? (
|
||||
<img src={r.thumb} crossOrigin={imgCors(r.thumb)} alt="" loading="lazy" className="h-[5.25rem] w-14 shrink-0 rounded-lg border border-line bg-surface-2 object-cover" />
|
||||
<img src={r.thumb} alt="" loading="lazy" className="h-[5.25rem] w-14 shrink-0 rounded-lg border border-line bg-surface-2 object-cover" />
|
||||
) : (
|
||||
<span className="grid h-[5.25rem] w-14 shrink-0 place-items-center rounded-lg border border-line bg-surface-2 font-semibold text-ink-3">{r.title.charAt(0)}</span>
|
||||
)}
|
||||
@@ -129,7 +128,7 @@ export default function AddTitle({
|
||||
<li key={p.id}>
|
||||
<button onClick={() => onOpenPerson(p)} className="flex w-full items-center gap-3 py-2.5 text-start active:bg-surface lg:border-b lg:border-line">
|
||||
{p.photo ? (
|
||||
<img src={p.photo} crossOrigin={imgCors(p.photo)} alt="" loading="lazy" className="size-14 shrink-0 rounded-full border border-line bg-surface-2 object-cover" />
|
||||
<img src={p.photo} alt="" loading="lazy" className="size-14 shrink-0 rounded-full border border-line bg-surface-2 object-cover" />
|
||||
) : (
|
||||
<span className="grid size-14 shrink-0 place-items-center rounded-full border border-line bg-surface-2 text-lg font-semibold text-ink-3">{p.name.charAt(0)}</span>
|
||||
)}
|
||||
|
||||
@@ -12,7 +12,7 @@ import { useEscape } from '../../lib/escape'
|
||||
import { episodeCap, seasonPosition } from '../../lib/franchise'
|
||||
import { episodesPatch } from '../../lib/progress'
|
||||
import { useScrollLock } from '../../lib/scrollLock'
|
||||
import { backdropSrcSet, tmdbSized, imgCors } from '../../lib/tmdbImage'
|
||||
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
|
||||
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
|
||||
import { GuestError, useMedia } from '../../store'
|
||||
import { allTags, cleanTag } from '../../lib/bulk'
|
||||
@@ -385,7 +385,6 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
|
||||
{heroImage ? (
|
||||
<img
|
||||
src={tmdbSized(heroImage, 'w1280')}
|
||||
crossOrigin={imgCors(tmdbSized(heroImage, 'w1280'))}
|
||||
srcSet={backdropSrcSet(heroImage)}
|
||||
sizes="100vw"
|
||||
alt=""
|
||||
@@ -659,7 +658,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
|
||||
className="group w-[5.5rem] shrink-0 text-center"
|
||||
>
|
||||
{c.photo ? (
|
||||
<img src={c.photo} crossOrigin={imgCors(c.photo)} alt="" loading="lazy" className="mx-auto size-20 rounded-full border border-line bg-surface-2 object-cover transition-colors group-hover:border-accent" />
|
||||
<img src={c.photo} alt="" loading="lazy" className="mx-auto size-20 rounded-full border border-line bg-surface-2 object-cover transition-colors group-hover:border-accent" />
|
||||
) : (
|
||||
<span className="mx-auto grid size-20 place-items-center rounded-full border border-line bg-surface-2 text-lg font-semibold text-ink-3 transition-colors group-hover:border-accent">{c.name.charAt(0)}</span>
|
||||
)}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ChevronDown, ExternalLink, Globe } from 'lucide-react'
|
||||
import { useMemo, type ReactNode } from 'react'
|
||||
import { t } from '../../i18n'
|
||||
import type { TitleExtras } from '../../lib/catalogApi'
|
||||
import { tmdbSized, imgCors } from '../../lib/tmdbImage'
|
||||
import { tmdbSized } from '../../lib/tmdbImage'
|
||||
import { countryName, defaultWatchRegion, OFFER_KINDS, setWatchRegion, useWatchRegion, type StreamLink, type WatchProvider } from '../../lib/watchProviders'
|
||||
|
||||
const JUSTWATCH = 'https://www.justwatch.com'
|
||||
@@ -96,7 +96,6 @@ function ProviderLogo({ provider, href }: { provider: WatchProvider; href?: stri
|
||||
const logo = provider.logo ? (
|
||||
<img
|
||||
src={provider.logo}
|
||||
crossOrigin={imgCors(provider.logo)}
|
||||
srcSet={`${provider.logo} 1x, ${tmdbSized(provider.logo, 'w154')} 2x`}
|
||||
alt={provider.name}
|
||||
title={provider.name}
|
||||
@@ -133,7 +132,7 @@ function StreamLinks({ links }: { links: StreamLink[] }) {
|
||||
>
|
||||
{l.icon ? (
|
||||
<span className="grid size-7 shrink-0 place-items-center rounded-full bg-surface-2" style={l.color ? { backgroundColor: l.color } : undefined}>
|
||||
<img src={l.icon} crossOrigin={imgCors(l.icon)} alt="" loading="lazy" className="size-4 object-contain" />
|
||||
<img src={l.icon} alt="" loading="lazy" className="size-4 object-contain" />
|
||||
</span>
|
||||
) : (
|
||||
<span className="grid size-7 shrink-0 place-items-center rounded-full bg-surface-2 text-xs font-semibold text-ink-2" aria-hidden>
|
||||
|
||||
Reference in new issue
Block a user