From 07a00c3ea35b4df7eb23275704dd26f842db76be Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Tue, 3 Mar 2026 22:54:56 -0800
Subject: fix(anime): align due cover rendering with due classification

---
 src/lib/List/CleanGrid.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/lib/List/CleanGrid.svelte')

diff --git a/src/lib/List/CleanGrid.svelte b/src/lib/List/CleanGrid.svelte
index 006a5e4e..384d4940 100644
--- a/src/lib/List/CleanGrid.svelte
+++ b/src/lib/List/CleanGrid.svelte
@@ -1,6 +1,7 @@
 <script lang="ts">
 import type { Media } from "$lib/Data/AniList/media";
 import ParallaxImage from "$lib/Image/ParallaxImage.svelte";
+import { shouldRenderAnimeCover } from "$lib/List/Anime/rendering";
 import { outboundLink } from "$lib/Media/links";
 import LinkedTooltip from "$lib/Tooltip/LinkedTooltip.svelte";
 import settings from "$stores/settings";
@@ -30,7 +31,9 @@ $: processedMedia =
     {@const progress = (title.mediaListEntry || { progress: 0 }).progress}
     {@const isAboveFold = index < 6}
 
-    {#if type === 'anime' ? upcoming || notYetReleased || progress !== (title.nextAiringEpisode?.episode || 9999) - 1 : progress != title.episodes}
+    {#if type === 'anime'
+      ? shouldRenderAnimeCover(title, { upcoming, notYetReleased })
+      : progress != title.episodes}
       <div class="cover-card" id={`${type}-${title.id}-${uniqueID}`}>
         <LinkedTooltip
           pin={`${type}-${title.id}-${uniqueID}`}
-- 
cgit v1.2.3

