From 19b45f125280eb0c6ff8af42385263dfa1968539 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 4 Mar 2026 14:15:02 +0000 Subject: [PATCH] Larger movie posters and cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Poster 110×165px (w342 TMDB), grid et padding agrandis. Co-Authored-By: Claude Sonnet 4.6 --- static/style.css | 25 +++++++++++++------------ tmdb.py | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/static/style.css b/static/style.css index 4511785..028b7f7 100644 --- a/static/style.css +++ b/static/style.css @@ -212,13 +212,13 @@ main { /* ── Movie row ─────────────────────────────────────────── */ .movie-row { display: grid; - grid-template-columns: 68px 195px 1fr 340px; - gap: .9rem; + grid-template-columns: 110px 220px 1fr 340px; + gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); - border-radius: 9px; - padding: .55rem .7rem; + border-radius: 10px; + padding: .7rem .9rem; transition: background .2s, border-color .2s; } .movie-row:hover { @@ -228,25 +228,26 @@ main { /* ── Poster ─────────────────────────────────────────────── */ .movie-poster { - width: 68px; - height: 102px; - border-radius: 5px; + width: 110px; + height: 165px; + border-radius: 6px; object-fit: cover; display: block; flex-shrink: 0; background: var(--border); + box-shadow: 0 4px 12px rgba(0,0,0,.4); } .poster-ph { - width: 68px; - height: 102px; - border-radius: 5px; + width: 110px; + height: 165px; + border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--faint); - font-size: 1.4rem; + font-size: 2rem; flex-shrink: 0; } @@ -255,7 +256,7 @@ main { .movie-title { font-weight: 600; - font-size: .88rem; + font-size: .95rem; line-height: 1.35; color: var(--text); display: -webkit-box; diff --git a/tmdb.py b/tmdb.py index b45689b..b1e89a0 100644 --- a/tmdb.py +++ b/tmdb.py @@ -4,7 +4,7 @@ import httpx class TMDBClient: BASE_URL = "https://api.themoviedb.org/3" - POSTER_BASE = "https://image.tmdb.org/t/p/w185" + POSTER_BASE = "https://image.tmdb.org/t/p/w342" def __init__(self, api_key: str): self.api_key = api_key