From ca71c1646dce2faf747217a215052632fb6a2d12 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Tue, 10 Mar 2026 01:22:11 +0100 Subject: [PATCH] Move expand icon to the left of panel titles --- components/dashboard/Campaigns.tsx | 18 +++++++-------- components/dashboard/ContentStats.tsx | 28 +++++++++++------------ components/dashboard/Locations.tsx | 32 +++++++++++++-------------- components/dashboard/TechSpecs.tsx | 32 +++++++++++++-------------- components/dashboard/TopReferrers.tsx | 26 ++++++++++++---------- 5 files changed, 69 insertions(+), 67 deletions(-) diff --git a/components/dashboard/Campaigns.tsx b/components/dashboard/Campaigns.tsx index 5d6165c..841a549 100644 --- a/components/dashboard/Campaigns.tsx +++ b/components/dashboard/Campaigns.tsx @@ -124,16 +124,7 @@ export default function Campaigns({ siteId, dateRange, filters, onFilter }: Camp <>
-

- Campaigns -

- {showViewAll && ( )} +

+ Campaigns +

+
diff --git a/components/dashboard/ContentStats.tsx b/components/dashboard/ContentStats.tsx index f70785d..d1ab95f 100644 --- a/components/dashboard/ContentStats.tsx +++ b/components/dashboard/ContentStats.tsx @@ -98,11 +98,21 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain, <>
-

- Pages -

-
+ {showViewAll && ( + + )} +

+ Pages +

+
+
{(['top_pages', 'entry_pages', 'exit_pages'] as Tab[]).map((tab) => (
- {showViewAll && ( - - )}
diff --git a/components/dashboard/Locations.tsx b/components/dashboard/Locations.tsx index d7025d7..cb8019d 100644 --- a/components/dashboard/Locations.tsx +++ b/components/dashboard/Locations.tsx @@ -202,12 +202,22 @@ export default function Locations({ countries, cities, regions, geoDataLevel = ' <>
-

- Locations -

-
- {(['map', 'globe', 'countries', 'regions', 'cities'] as Tab[]).map((tab) => ( + {showViewAll && ( + + )} +

+ Locations +

+
+
+ {(['map', 'globe', 'countries', 'regions', 'cities'] as Tab[]).map((tab) => ( - ))} -
- {showViewAll && ( - - )} + ))}
diff --git a/components/dashboard/TechSpecs.tsx b/components/dashboard/TechSpecs.tsx index 38573f9..c54788f 100644 --- a/components/dashboard/TechSpecs.tsx +++ b/components/dashboard/TechSpecs.tsx @@ -128,12 +128,22 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions, co <>
-

- Technology -

-
- {(['browsers', 'os', 'devices', 'screens'] as Tab[]).map((tab) => ( + {showViewAll && ( + + )} +

+ Technology +

+
+
+ {(['browsers', 'os', 'devices', 'screens'] as Tab[]).map((tab) => ( - ))} -
- {showViewAll && ( - - )} + ))}
diff --git a/components/dashboard/TopReferrers.tsx b/components/dashboard/TopReferrers.tsx index 7a2785c..c527e0b 100644 --- a/components/dashboard/TopReferrers.tsx +++ b/components/dashboard/TopReferrers.tsx @@ -86,18 +86,20 @@ export default function TopReferrers({ referrers, collectReferrers = true, siteI <>
-

- Referrers -

- {showViewAll && ( - - )} +
+ {showViewAll && ( + + )} +

+ Referrers +

+