fix: preserve home logo scale after admin navigation

This commit is contained in:
3252a8
2026-05-27 07:13:53 +03:00
parent f77a6ea46d
commit f2c0a9f6d5
2 changed files with 13 additions and 6 deletions
+7
View File
@@ -328,6 +328,13 @@ class WebAppAssetTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("/webapp-default-logo.webp", nginx_conf)
self.assertIn("proxy_pass http://backend:8081;", nginx_conf)
def test_home_logo_scale_rules_beat_late_loaded_admin_brand_styles(self):
css = Path("frontend/src/styles/webapp.css").read_text(encoding="utf-8")
self.assertIn(".app-shell .home-brand .brand-mark.brand-mark-xl", css)
self.assertIn(".app-shell .login-brand-auth .brand-mark.brand-mark-xl", css)
self.assertIn(".app-shell .loader .brand-mark.brand-mark-lg", css)
def test_prune_unused_appearance_assets_keeps_only_referenced_logo_and_favicons(self):
with tempfile.TemporaryDirectory() as tmpdir:
root = Path(tmpdir)