feat: refine simulcast card layout with smaller hover title and wider grid

This commit is contained in:
2026-06-30 21:24:24 +02:00
parent 59756095c2
commit 3a824c9c7e
2 changed files with 4 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
{{$hideTitle := .HideTitle}}
{{$isWatchlist := .IsWatchlist}}
{{$hasTopBadge := .HasTopBadge}}
{{$smallHoverTitle := .SmallHoverTitle}}
{{$dataId := printf "id-%d" $anime.MalID}}
{{$imageUrl := posterURL $anime.Images.Webp.LargeImageURL $anime.Images.Jpg.LargeImageURL 400 600}}
@@ -21,7 +22,7 @@
{{if $withActions}}
<div class="absolute inset-0 z-10 flex flex-col p-3 {{if $hasTopBadge}}pt-10{{end}} opacity-0 transition-opacity duration-300 group-hover:opacity-100">
{{if not $isWatchlist}}
<h3 class="mb-1.5 line-clamp-2 text-base font-medium text-white">
<h3 class="mb-1.5 line-clamp-2 {{if $smallHoverTitle}}text-sm{{else}}text-base{{end}} font-medium text-white">
{{$displayTitle}}
</h3>
{{end}}