diff --git a/components/dashboard/Campaigns.tsx b/components/dashboard/Campaigns.tsx index 87bad2b..7e4b35c 100644 --- a/components/dashboard/Campaigns.tsx +++ b/components/dashboard/Campaigns.tsx @@ -213,7 +213,7 @@ export default function Campaigns({ siteId, dateRange, filters, onFilter }: Camp { setIsModalOpen(false); setModalSearch('') }} - title="All Campaigns" + title="Campaigns" className="max-w-2xl" >
@@ -250,7 +250,7 @@ export default function Campaigns({ siteId, dateRange, filters, onFilter }: Camp
{ if (onFilter) { onFilter({ dimension: 'utm_source', operator: 'is', values: [item.source] }); setIsModalOpen(false) } }} - className={`flex items-center justify-between py-2 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors${onFilter ? ' cursor-pointer' : ''}`} + className={`flex items-center justify-between py-2 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 transition-colors${onFilter ? ' cursor-pointer' : ''}`} >
{renderSourceIcon(item.source)} diff --git a/components/dashboard/ContentStats.tsx b/components/dashboard/ContentStats.tsx index 7ab1989..ab8a029 100644 --- a/components/dashboard/ContentStats.tsx +++ b/components/dashboard/ContentStats.tsx @@ -197,7 +197,7 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain, { setIsModalOpen(false); setModalSearch('') }} - title={`Pages - ${getTabLabel(activeTab)}`} + title={getTabLabel(activeTab)} className="max-w-2xl" >
@@ -222,8 +222,8 @@ export default function ContentStats({ topPages, entryPages, exitPages, domain, return (
{ if (canFilter) { onFilter({ dimension: 'path', operator: 'is', values: [page.path] }); setIsModalOpen(false) } }} - className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} + onClick={() => { if (canFilter) { onFilter({ dimension: 'page', operator: 'is', values: [page.path] }); setIsModalOpen(false) } }} + className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} >
{page.path} diff --git a/components/dashboard/Locations.tsx b/components/dashboard/Locations.tsx index 410f039..f9d3406 100644 --- a/components/dashboard/Locations.tsx +++ b/components/dashboard/Locations.tsx @@ -322,7 +322,7 @@ export default function Locations({ countries, cities, regions, geoDataLevel = ' { setIsModalOpen(false); setModalSearch('') }} - title={`Locations - ${activeTab.charAt(0).toUpperCase() + activeTab.slice(1)}`} + title={activeTab.charAt(0).toUpperCase() + activeTab.slice(1)} className="max-w-2xl" >
@@ -355,7 +355,7 @@ export default function Locations({ countries, cities, regions, geoDataLevel = '
{ if (canFilter) { onFilter({ dimension: dim, operator: 'is', values: [filterValue!] }); setIsModalOpen(false) } }} - className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} + className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} >
{getFlagComponent(item.country ?? '')} diff --git a/components/dashboard/TechSpecs.tsx b/components/dashboard/TechSpecs.tsx index d969b4f..59cdec4 100644 --- a/components/dashboard/TechSpecs.tsx +++ b/components/dashboard/TechSpecs.tsx @@ -223,7 +223,7 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions, co { setIsModalOpen(false); setModalSearch('') }} - title={`Technology - ${activeTab.charAt(0).toUpperCase() + activeTab.slice(1)}`} + title={activeTab.charAt(0).toUpperCase() + activeTab.slice(1)} className="max-w-2xl" >
@@ -250,7 +250,7 @@ export default function TechSpecs({ browsers, os, devices, screenResolutions, co
{ if (canFilter) { onFilter({ dimension: dim, operator: 'is', values: [item.name] }); setIsModalOpen(false) } }} - className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} + className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 transition-colors${canFilter ? ' cursor-pointer' : ''}`} >
{item.icon && {item.icon}} diff --git a/components/dashboard/TopReferrers.tsx b/components/dashboard/TopReferrers.tsx index c5df9e4..83b172b 100644 --- a/components/dashboard/TopReferrers.tsx +++ b/components/dashboard/TopReferrers.tsx @@ -177,7 +177,7 @@ export default function TopReferrers({ referrers, collectReferrers = true, siteI
{ if (onFilter) { onFilter({ dimension: 'referrer', operator: 'is', values: [ref.referrer] }); setIsModalOpen(false) } }} - className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 -mx-2 transition-colors${onFilter ? ' cursor-pointer' : ''}`} + className={`flex items-center justify-between h-9 group hover:bg-neutral-50 dark:hover:bg-neutral-800 rounded-lg px-2 transition-colors${onFilter ? ' cursor-pointer' : ''}`} >
{renderReferrerIcon(ref.referrer)} diff --git a/package-lock.json b/package-lock.json index 6d307ce..89e22e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "pulse-frontend", "version": "0.13.0-alpha", "dependencies": { - "@ciphera-net/ui": "^0.1.2", + "@ciphera-net/ui": "^0.1.3", "@ducanh2912/next-pwa": "^10.2.9", "@phosphor-icons/react": "^2.1.10", "@simplewebauthn/browser": "^13.2.2", @@ -1666,9 +1666,9 @@ } }, "node_modules/@ciphera-net/ui": { - "version": "0.1.2", - "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.1.2/3c7b059065be5a3f4bda0aeab66be342433eefcd", - "integrity": "sha512-e8Iir4CPNJI1RP2pIzh41qLv6Ftig7c+b9OriI2Y+15g2GoaQjFzxzBFo+nyJuCj2QdvtHbkx8YpN+SLfnkPwA==", + "version": "0.1.3", + "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.1.3/2fb3a50f2648b9206d662d2dfdeb1aed4a0e27af", + "integrity": "sha512-JPM2XvErK6iW7XEJ81jEc2wqF4/Ej9o33f1xTc4MkzdMX5H81kLkUpp9TrwL/m6LvZ85Baj3853osnOvm8Y1Hw==", "dependencies": { "@phosphor-icons/react": "^2.1.10", "class-variance-authority": "^0.7.1", diff --git a/package.json b/package.json index 917e3f4..3b4a9fb 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:watch": "vitest" }, "dependencies": { - "@ciphera-net/ui": "^0.1.2", + "@ciphera-net/ui": "^0.1.3", "@ducanh2912/next-pwa": "^10.2.9", "@phosphor-icons/react": "^2.1.10", "@simplewebauthn/browser": "^13.2.2",