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:
@@ -114,7 +114,7 @@ defmodule BerrypodWeb.ErrorHTML do
|
||||
css
|
||||
|
||||
:miss ->
|
||||
css = CSSGenerator.generate(theme_settings)
|
||||
css = CSSGenerator.generate(theme_settings, &BerrypodWeb.Endpoint.static_path/1)
|
||||
CSSCache.put(css)
|
||||
css
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user