fix admin font loading and theme CSS cache miss bug

add system font stack to admin reset CSS so setup/admin pages render
sans-serif on all devices instead of falling through to browser default.
pass path_resolver to CSSGenerator.generate on cache miss paths so
font URLs resolve to digested paths in production.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-20 18:39:41 +00:00
parent e5362d56fc
commit a78a1db847
6 changed files with 6 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ defmodule BerrypodWeb.ThemeHook do
css
:miss ->
css = CSSGenerator.generate(theme_settings)
css = CSSGenerator.generate(theme_settings, &BerrypodWeb.Endpoint.static_path/1)
CSSCache.put(css)
css
end