From 891b414d5f132310c4d84dd2757dbb293fe750b5 Mon Sep 17 00:00:00 2001 From: johnnyjoy Date: Wed, 7 May 2025 22:04:53 +0800 Subject: [PATCH] chore: fix dark mode --- frontend/web/src/components/AnalyticsView.tsx | 8 +++++--- frontend/web/src/pages/CollectionDashboard.tsx | 2 +- frontend/web/src/pages/ShortcutDashboard.tsx | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/web/src/components/AnalyticsView.tsx b/frontend/web/src/components/AnalyticsView.tsx index ff0f752..9deb754 100644 --- a/frontend/web/src/components/AnalyticsView.tsx +++ b/frontend/web/src/components/AnalyticsView.tsx @@ -113,12 +113,12 @@ const AnalyticsView: React.FC = (props: Props) => { ) : ( -
+
{t("analytics.operating-system")} {t("analytics.visitors")}
-
+
{analytics.devices.length === 0 && (
@@ -127,7 +127,9 @@ const AnalyticsView: React.FC = (props: Props) => { )} {analytics.devices.map((device) => (
- {device.name || "Unknown"} + + {device.name || "Unknown"} + {device.count}
))} diff --git a/frontend/web/src/pages/CollectionDashboard.tsx b/frontend/web/src/pages/CollectionDashboard.tsx index 28842d2..cd7c2d5 100644 --- a/frontend/web/src/pages/CollectionDashboard.tsx +++ b/frontend/web/src/pages/CollectionDashboard.tsx @@ -78,7 +78,7 @@ const CollectionDashboard: React.FC = () => {

No collections found.

diff --git a/frontend/web/src/pages/ShortcutDashboard.tsx b/frontend/web/src/pages/ShortcutDashboard.tsx index a6912b6..f135790 100644 --- a/frontend/web/src/pages/ShortcutDashboard.tsx +++ b/frontend/web/src/pages/ShortcutDashboard.tsx @@ -80,7 +80,7 @@ const ShortcutDashboard: React.FC = () => {

No shortcuts found.