From eaccaf942addcf0dead59a41f00a43ac96614a6c Mon Sep 17 00:00:00 2001 From: Quick104 <31828688+Quick104@users.noreply.github.com> Date: Fri, 20 Nov 2026 21:49:29 -0500 Subject: [PATCH] fix(web): keep badges readable on watched calendar cards A watched calendar card dimmed and greyed its whole poster layer, so the premiere, finale, digital and physical badges and the check mark faded with the artwork. The premiere badge fell well below 4.5:1 with every shipped accent. Dim only the artwork layer and leave the badges and check mark at full strength. Co-Authored-By: Claude Opus 5.5 --- .../components/calendar/CalendarEventCard.tsx | 62 ++++++++++--------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/web/src/components/calendar/CalendarEventCard.tsx b/web/src/components/calendar/CalendarEventCard.tsx index 2fc50a3bec..975c8d010f 100644 --- a/web/src/components/calendar/CalendarEventCard.tsx +++ b/web/src/components/calendar/CalendarEventCard.tsx @@ -36,34 +36,40 @@ export default function CalendarEventCard({ event }: { event: CalendarEvent }) { aria-label={event.title} className="block overflow-hidden rounded-xl" > -
- {event.poster_url && failedUrl !== event.poster_url ? ( - {event.title} setLoaded(true)} - onError={() => setFailedUrl(event.poster_url ?? null)} - /> - ) : ( - !thumbhashUrl && ( - // Every calendar entry that isn't a movie belongs to a series. - - ) - )} -
+
+ {/* A watched entry dims only its artwork; the badges and check mark + sit outside this layer so their labels keep full contrast. The + page background behind it keeps the dimmed artwork as dark as + when the whole card faded into the page. */} +
+ {event.poster_url && failedUrl !== event.poster_url ? ( + {event.title} setLoaded(true)} + onError={() => setFailedUrl(event.poster_url ?? null)} + /> + ) : ( + !thumbhashUrl && ( + // Every calendar entry that isn't a movie belongs to a series. + + ) + )} +
+
{event.badges.length > 0 && (
{event.badges.map((badge) => (