diff --git a/src/components/title/TitleSheet.tsx b/src/components/title/TitleSheet.tsx index e698254..e2abb63 100644 --- a/src/components/title/TitleSheet.tsx +++ b/src/components/title/TitleSheet.tsx @@ -12,7 +12,6 @@ import { useEscape } from '../../lib/escape' import { episodeCap, seasonPosition } from '../../lib/franchise' import { episodesPatch } from '../../lib/progress' import { useScrollLock } from '../../lib/scrollLock' -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' @@ -93,7 +92,6 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson, const episodic = TYPE_BY_VALUE[type].episodic const externalId = item?.externalId ?? seed?.externalId const poster = item?.poster ?? seed?.posterUrl - const backdrop = item?.backdrop ?? data.backdrop // Note moyenne, casting… (en ligne) const [extras, setExtras] = useState() @@ -325,7 +323,6 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson, }) } - const heroImage = backdrop ?? extras?.backdrop const average = extras?.average ?? data.publicRating const source = externalId?.startsWith('anilist:') ? 'AniList' : externalId ? 'TMDB' : undefined const runtime = type === 'film' ? (data.duration ?? extras?.runtime) : undefined @@ -358,20 +355,9 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
{/* Grande marge en bas : rien ne reste caché sous une barre des tâches ou la barre d'accueil du téléphone */}
- {/* Image de scène en grand (nette sur tous les écrans), qui se fond dans le fond, avec l'affiche et le titre posés dessus */} - {heroImage ? ( - - ) : ( -
- )} -
+ {/* En-tête sobre pour tous les titres : l'affiche et le titre côte à côte (la grande image de scène reste pour l'accueil) */} +
+
diff --git a/src/index.css b/src/index.css index 047dafe..5df892d 100644 --- a/src/index.css +++ b/src/index.css @@ -291,19 +291,3 @@ } } -/* - * Grande image de fond d'une fiche (façon Letterboxd / TV Time) : elle se fond dans le fond du thème - * en bas (et sur les côtés sur ordinateur) grâce à un masque de transparence, sans couleur ajoutée. - */ -.hero-fade { - -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); - mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); -} -@media (min-width: 64rem) { - .hero-fade { - -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); - -webkit-mask-composite: source-in; - mask-image: linear-gradient(to bottom, #000 40%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); - mask-composite: intersect; - } -}