diff --git a/internal/templates/anime.templ b/internal/templates/anime.templ index 4bc84bf..93a35a6 100644 --- a/internal/templates/anime.templ +++ b/internal/templates/anime.templ @@ -283,6 +283,9 @@ templ AnimeRelationsList(relations []jikan.RelationEntry) { TitleClass: "relation-title", CurrentNode: rel.IsCurrent, }) { + if rel.IsCurrent { +
+ } if rel.Relation != "" && rel.Relation != "Current" {
{ rel.Relation }
} @@ -295,11 +298,7 @@ templ AnimeRelationsList(relations []jikan.RelationEntry) { } func relationCardClass(rel jikan.RelationEntry) string { - base := "relation-card" - if rel.IsCurrent { - base += " current" - } - return base + return "relation-card min-w-0 flex flex-col bg-transparent text-inherit no-underline" } templ AnimeRecommendations(recs []jikan.Anime) {