Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added theme support for Fallback page

Blue Mouseb503a96e03f7
diff --git a/src/App.js b/src/App.js
index 59b25c5ff..57dcbc572 100644
--- a/src/App.js
+++ b/src/App.js
@@ -50,7 +50,7 @@ const Fallback = ({ isMinimalFooter }) => {
}, [])
return (
- <div className={cx({ 'min-h-page': !isMinimalFooter, 'min-h-min-footer': isMinimalFooter })}>
+ <div className={cx('bg-gray-50 dark:bg-gray-800', { 'min-h-page': !isMinimalFooter, 'min-h-min-footer': isMinimalFooter })}>
{showLoader && (
<Loader />
)}
@@ -112,7 +112,7 @@ const App = () => {
<Header authenticated={authenticated} theme={theme} />
<ScrollToTop>
<Selfhosted>
- <Suspense fallback={<Fallback isMinimalFooter={isMinimalFooter} />}>
+ <Suspense fallback={<Fallback theme={theme} isMinimalFooter={isMinimalFooter} />}>
<Switch>
<Route path={routes.main} component={MainPage} exact />
<Route path={routes.signin} component={SignIn} exact />
diff --git a/src/ui/Loader.jsx b/src/ui/Loader.jsx
index f53f93afd..c2b47b4b5 100644
--- a/src/ui/Loader.jsx
+++ b/src/ui/Loader.jsx
@@ -2,7 +2,7 @@ import React from 'react'
import Spin from './icons/Spin'
const Loader = () => (
- <div className='flex justify-center mt-10'>
+ <div className='flex justify-center pt-10'>
<Spin className='h-20 w-20 text-indigo-700' />
<span className='sr-only'>Loading...</span>
</div>