diff --git a/backend/src/main.rs b/backend/src/main.rs index 0e72b4e..174739c 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -845,8 +845,8 @@ fn team_summary_for(conn: &Connection, team_name: &str) -> Result Result 0 GROUP BY period diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 34d9ec2..f24bff6 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -54,25 +54,43 @@ const siteGateEnabled = String(import.meta.env.VITE_SITE_GATE || 'false').toLowe const staticDataBase = (import.meta.env.VITE_STATIC_DATA_BASE || '/data').replace(/\/+$/, '') const staticDataEnabled = String(import.meta.env.VITE_STATIC_DATA || 'false').toLowerCase() === 'true' const missingStaticDataPaths = new Set() -const pixelSunSvg = `data:image/svg+xml,${encodeURIComponent(` - - - - - - - -`)}` -const pixelMoonSvg = `data:image/svg+xml,${encodeURIComponent(` - - - - - - - - -`)}` +// Rendered inline (not via ) so the SVGs live in the page's +// CSS scope and can resolve currentColor and the --sprite-* / --color-* theme +// variables. An external SVG image renders in an isolated document and would +// fall back to black for every themed fill. +function PixelSun(props) { + return ( + + + + + + + + ) +} +function PixelMoon(props) { + return ( + + + + + + + + + ) +} const defaultAnalyticsPreferences = { chosen: false, @@ -2900,9 +2918,9 @@ function PixelMountains() { ref={skyRef} style={skyPaths} > - +