From daac41120f4c12e6dd7748b1e7c16b7d4bd7e76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kr=C3=B6ger?= Date: Tue, 17 Nov 2026 13:14:52 +0100 Subject: [PATCH] Fix dark mode not compressed Compress CSS for dark mode but still load it early to avoid white flashes on the initial loading (not happening once cached). --- .../serveradmin/serveradmin/common/templates/base.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/serveradmin/serveradmin/common/templates/base.html b/packages/serveradmin/serveradmin/common/templates/base.html index 6f2f7387..8b6d6498 100644 --- a/packages/serveradmin/serveradmin/common/templates/base.html +++ b/packages/serveradmin/serveradmin/common/templates/base.html @@ -14,16 +14,18 @@ - {% block additional_styles %}{% endblock %} - + {% block additional_styles %}{% endblock %} {% endcompress %} + of the light theme. Needs its own compress block in the head, the one + at the bottom of the body is only executed after the first render. --> + {% compress js %} + {% endcompress %} + {% block title %}{% endblock %} · Serveradmin