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!

fix: Dark mode text rendering issues

Blue Mouse044abfec1ec4
diff --git a/web/app/pages/Project/tabs/SEO/CompactReferralPanel.tsx b/web/app/pages/Project/tabs/SEO/CompactReferralPanel.tsx
index b4b6668f9..d7565d1ac 100644
--- a/web/app/pages/Project/tabs/SEO/CompactReferralPanel.tsx
+++ b/web/app/pages/Project/tabs/SEO/CompactReferralPanel.tsx
@@ -4,6 +4,7 @@ import React, { useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import type { Entry } from '~/lib/models/Entry'
+import { PanelEmptyState } from '~/pages/Project/View/Panels'
import { Text } from '~/ui/Text'
import { nFormatter } from '~/utils/generic'
@@ -61,11 +62,7 @@ const CompactReferralPanel = ({
{title}
</Text>
</div>
- <div className='flex h-32 items-center justify-center'>
- <Text size='xs' colour='inherit'>
- {t('project.noParamData')}
- </Text>
- </div>
+ <PanelEmptyState message={t('project.noParamData')} />
</div>
)
}
diff --git a/web/app/pages/Project/tabs/SEO/SEOView.tsx b/web/app/pages/Project/tabs/SEO/SEOView.tsx
index 3c45c111b..b9b0a2dcb 100644
--- a/web/app/pages/Project/tabs/SEO/SEOView.tsx
+++ b/web/app/pages/Project/tabs/SEO/SEOView.tsx
@@ -30,7 +30,11 @@ import BillboardChart from '~/ui/BillboardChart'
import DashboardHeader from '~/pages/Project/View/components/DashboardHeader'
import { MainChart } from '~/pages/Project/View/components/MainChart'
import Filters from '~/pages/Project/View/components/Filters'
-import { Panel, PanelContainer } from '~/pages/Project/View/Panels'
+import {
+ Panel,
+ PanelContainer,
+ PanelEmptyState,
+} from '~/pages/Project/View/Panels'
import {
useViewProjectContext,
useRefreshTriggers,
@@ -710,11 +714,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {
deps={[brandedTraffic, theme]}
/>
) : (
- <div className='flex h-32 items-center justify-center'>
- <Text size='xs' colour='inherit'>
- {t('project.seo.noBrandData')}
- </Text>
- </div>
+ <PanelEmptyState message={t('project.seo.noBrandData')} />
)}
</div>
</div>
@@ -783,11 +783,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {
deps={[quadrantData, theme, t]}
/>
) : (
- <div className='flex h-80 items-center justify-center'>
- <Text size='xs' colour='inherit'>
- {t('project.noParamData')}
- </Text>
- </div>
+ <PanelEmptyState message={t('project.noParamData')} />
)}
</PanelContainer>
</div>