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/');