From 960d5be8ab8037936d3b50fad3be4f295454e1dc Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 15 Apr 2026 02:04:13 +0200 Subject: [PATCH] fix(ui): remove duplicate notification title --- internal/shared/ui/anime_card.templ | 3 ++- internal/templates/notifications.templ | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/shared/ui/anime_card.templ b/internal/shared/ui/anime_card.templ index 8171f48..31bcd94 100644 --- a/internal/shared/ui/anime_card.templ +++ b/internal/shared/ui/anime_card.templ @@ -10,6 +10,7 @@ type AnimeCardProps struct { Class string // override default wrapper class ImgClass string // override default image class TitleClass string // override default title class + HideTitle bool // if true, do not render the default title block CurrentNode bool // if true, renders a div instead of an anchor tag (useful for graph nodes) } @@ -26,7 +27,7 @@ templ AnimeCard(props AnimeCardProps) { @animeCardPoster(props.ImageURL, props.Title, props.ImgClass) - if props.Class != "notification-card" && props.Class != "schedule-card" { + if !props.HideTitle {
{ props.Title }
diff --git a/internal/templates/notifications.templ b/internal/templates/notifications.templ index 646d16c..4e5e251 100644 --- a/internal/templates/notifications.templ +++ b/internal/templates/notifications.templ @@ -97,6 +97,7 @@ templ UpcomingSeasonCard(item database.GetUpcomingSeasonsRow) { Title: displaySeasonTitle(item), ImageURL: item.ImageUrl, Class: "notification-card min-w-0 flex flex-col bg-transparent text-inherit no-underline", + HideTitle: true, }) {
@@ -124,6 +125,7 @@ templ NotificationCard(item WatchingAnimeWithDetails) { Title: displayTitle(item.Entry), ImageURL: item.Entry.ImageUrl, Class: "notification-card min-w-0 flex flex-col bg-transparent text-inherit no-underline", + HideTitle: true, }) {