From 8a887f23fefc57080476afd08d84932849f4f2b4 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 21 Apr 2026 00:21:33 +0200 Subject: [PATCH] ui: standardize 6-column grid and fix tab colors --- web/shared/ui.go | 2 +- web/templates/catalog.templ | 2 +- web/templates/discovery.templ | 6 +++--- web/templates/studio.templ | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/shared/ui.go b/web/shared/ui.go index 7ba3276..0fcb1f9 100644 --- a/web/shared/ui.go +++ b/web/shared/ui.go @@ -4,7 +4,7 @@ package shared func TabClass(active bool) string { base := "shrink-0 whitespace-nowrap bg-(--panel-soft) px-2 py-1 text-xs text-(--text-muted) no-underline hover:bg-(--surface-tab-hover) hover:text-(--text) hover:no-underline" if active { - return "shrink-0 whitespace-nowrap bg-(--surface-tab-active) px-2 py-1 text-xs text-(--accent) no-underline hover:no-underline" + return "shrink-0 whitespace-nowrap bg-(--surface-tab-active) px-2 py-1 text-xs text-(--text-tab-active) no-underline hover:no-underline" } return base } diff --git a/web/templates/catalog.templ b/web/templates/catalog.templ index dceb456..91e233e 100644 --- a/web/templates/catalog.templ +++ b/web/templates/catalog.templ @@ -7,7 +7,7 @@ import "mal/web/shared/layout" templ Catalog() { @layout.Layout("mal - catalog", true) { -
+
@ui.LoadingIndicator("Loading catalog")
diff --git a/web/templates/discovery.templ b/web/templates/discovery.templ index 32169c0..ab8977d 100644 --- a/web/templates/discovery.templ +++ b/web/templates/discovery.templ @@ -20,7 +20,7 @@ templ Discover() { hx-target="#discover-content" hx-trigger="click" data-tab-trigger - data-tab-active-classes="bg-(--surface-tab-active) text-(--accent)" + data-tab-active-classes="bg-(--surface-tab-active) text-(--text-tab-active)" data-tab-inactive-classes="bg-(--panel-soft) text-(--text-muted)" > airing now @@ -32,13 +32,13 @@ templ Discover() { hx-target="#discover-content" hx-trigger="click" data-tab-trigger - data-tab-active-classes="bg-(--surface-tab-active) text-(--accent)" + data-tab-active-classes="bg-(--surface-tab-active) text-(--text-tab-active)" data-tab-inactive-classes="bg-(--panel-soft) text-(--text-muted)" > upcoming
-
+
@ui.LoadingIndicator("Loading discover")
diff --git a/web/templates/studio.templ b/web/templates/studio.templ index 637d06c..e4f50ca 100644 --- a/web/templates/studio.templ +++ b/web/templates/studio.templ @@ -41,7 +41,7 @@ templ StudioDetails(producer jikan.ProducerResponse, animes []jikan.Anime, hasNe

Anime

-
+
for _, anime := range animes {
@components.AnimeCard(components.AnimeCardProps{