The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix: force light mode on shared trip page
Mauricece4b8088ec4e
diff --git a/client/src/App.tsx b/client/src/App.tsxindex 80e833836..1128c7009 100644--- a/client/src/App.tsx+++ b/client/src/App.tsx@@ -105,7 +105,18 @@ export default function App() {}}, [isAuthenticated])+ const location = useLocation()+ const isSharedPage = location.pathname.startsWith('/shared/')+useEffect(() => {+ // Shared page always forces light mode+ if (isSharedPage) {+ document.documentElement.classList.remove('dark')+ const meta = document.querySelector('meta[name="theme-color"]')+ if (meta) meta.setAttribute('content', '#ffffff')+ return+ }+const mode = settings.dark_modeconst applyDark = (isDark: boolean) => {document.documentElement.classList.toggle('dark', isDark)@@ -121,7 +132,7 @@ export default function App() {return () => mq.removeEventListener('change', handler)}applyDark(mode === true || mode === 'dark')- }, [settings.dark_mode])+ }, [settings.dark_mode, isSharedPage])return (<TranslationProvider>