diff --git a/src/application/routes/app/stats.rs b/src/application/routes/app/stats.rs index ace6526..bea1209 100644 --- a/src/application/routes/app/stats.rs +++ b/src/application/routes/app/stats.rs @@ -17,14 +17,14 @@ use crate::presentation::web::templates::{ }; const TABS: &[Tab] = &[ - Tab { - key: "roasters", - label: "Roasters", - }, Tab { key: "roasts", label: "Roasts", }, + Tab { + key: "roasters", + label: "Roasters", + }, Tab { key: "cups", label: "Cups", @@ -42,7 +42,7 @@ pub(crate) struct StatsQuery { } fn default_type() -> String { - "roasters".to_string() + "roasts".to_string() } #[tracing::instrument(skip(state, cookies, headers, stats_query))] diff --git a/static/css/input.css b/static/css/input.css index 65e35ef..3e730a9 100644 --- a/static/css/input.css +++ b/static/css/input.css @@ -342,13 +342,13 @@ input.input-field[type="number"] { font-weight: 500; cursor: pointer; border: 1px solid var(--border); - background: none; + background-color: var(--surface); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; color: var(--accent); } .tab:not(.tab-active):hover { - background-color: var(--surface-alt); + border-color: color-mix(in srgb, var(--accent) 40%, transparent); } .tab-active { diff --git a/templates/pages/stats.html b/templates/pages/stats.html index a4a129a..6c29838 100644 --- a/templates/pages/stats.html +++ b/templates/pages/stats.html @@ -27,17 +27,17 @@