From 2593a45cc3fb2682a27bd7c2ba7cab20d6fca173 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 20 Jun 2026 19:39:34 +0200 Subject: [PATCH] refactor: use tailwind theme utilities --- static/player/skip/segments.ts | 3 +-- templates/anime.gohtml | 4 ++-- templates/base.gohtml | 2 +- templates/components/anime_themes.gohtml | 2 +- templates/components/filter_bar.gohtml | 10 +++++----- templates/components/video_player.gohtml | 2 +- templates/components/watchlist_actions.gohtml | 2 +- templates/search.gohtml | 2 +- templates/watch.gohtml | 14 +++++++------- templates/watchlist.gohtml | 2 +- 10 files changed, 21 insertions(+), 22 deletions(-) diff --git a/static/player/skip/segments.ts b/static/player/skip/segments.ts index 11a627f..3d08d0e 100644 --- a/static/player/skip/segments.ts +++ b/static/player/skip/segments.ts @@ -63,8 +63,7 @@ export const renderSegments = (): void => { state.skip.activeSegments.forEach((s) => { const bar = document.createElement("div"); - bar.className = "absolute opacity-95"; - bar.style.backgroundColor = "var(--player-segment)"; + bar.className = "absolute bg-player-segment opacity-95"; bar.style.top = "-1px"; bar.style.height = "calc(100% + 2px)"; bar.style.left = `${(s.start / bounds) * 100}%`; diff --git a/templates/anime.gohtml b/templates/anime.gohtml index 85e6e44..548477b 100644 --- a/templates/anime.gohtml +++ b/templates/anime.gohtml @@ -7,7 +7,7 @@
-
+
{{$imageUrl := posterURL $anime.Images.Webp.LargeImageURL $anime.Images.Jpg.LargeImageURL 400 600}} {{$anime.Title}}
@@ -59,7 +59,7 @@
{{template "anime_synopsis" dict "Anime" $anime}}
-