From 2ec732b4e5fc16a1967362392657c3b54234ac0a Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Wed, 18 Feb 2026 07:47:58 +0100 Subject: [PATCH] fixed rating error + fixed background not changing error --- backend/api/views.py | 2 +- frontend/src/App.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/api/views.py b/backend/api/views.py index 6770e13..5c44592 100644 --- a/backend/api/views.py +++ b/backend/api/views.py @@ -1,6 +1,6 @@ from django.core.mail import send_mail from django.conf import settings -from rest_framework import viewsets, permissions, status, filters +from rest_framework import viewsets, permissions, status, filters, serializers from rest_framework.response import Response from rest_framework.decorators import action from django.db.models import Avg, Q diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 24e1b64..aee223c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -288,6 +288,12 @@ const App: React.FC = () => { const theme = useMemo(() => getTheme(themeName), [themeName]); + useEffect(() => { + // Update body styles to match theme immediately (overriding index.html blocking script) + document.body.style.backgroundColor = theme.palette.background.default; + document.body.style.color = theme.palette.text.primary; + }, [theme]); + const handleMarkAllRead = async () => { try { await api.post('notifications/mark_all_read/');