🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update Skeleton component heights and enhance Devices section layout
Bill Yang5084c53838d7
diff --git a/client/src/app/[site]/components/shared/StandardSection/Skeleton.tsx b/client/src/app/[site]/components/shared/StandardSection/Skeleton.tsxindex a60dd664b..2fbf2816f 100644--- a/client/src/app/[site]/components/shared/StandardSection/Skeleton.tsx+++ b/client/src/app/[site]/components/shared/StandardSection/Skeleton.tsx@@ -30,8 +30,8 @@ export const Skeleton = memo(() => {return (<><div className="flex flex-row gap-2 justify-between pr-1 text-xs text-neutral-400">- <div className="h-3 bg-neutral-800 rounded animate-pulse w-16"></div>- <div className="h-3 bg-neutral-800 rounded animate-pulse w-12"></div>+ <div className="h-4 bg-neutral-800 rounded animate-pulse w-16"></div>+ <div className="h-4 bg-neutral-800 rounded animate-pulse w-12"></div></div>{Array.from({ length: 10 }).map((_, index) => (<div key={index} className="relative h-6 flex items-center">diff --git a/client/src/app/[site]/main/components/MainSection/Overview.tsx b/client/src/app/[site]/main/components/MainSection/Overview.tsxindex aa74332a6..870be4750 100644--- a/client/src/app/[site]/main/components/MainSection/Overview.tsx+++ b/client/src/app/[site]/main/components/MainSection/Overview.tsx@@ -89,8 +89,8 @@ const Stat = ({<div className="text-2xl font-medium flex gap-2 items-center justify-between">{isLoading ? (<>- <Skeleton className="w-[60px] h-7 rounded-md" />- <Skeleton className="w-[30px] h-5 rounded-md" />+ <Skeleton className="w-[60px] h-9 rounded-md" />+ <Skeleton className="w-[50px] h-5 rounded-md" /></>) : (<>diff --git a/client/src/app/[site]/main/components/sections/Devices.tsx b/client/src/app/[site]/main/components/sections/Devices.tsxindex 46a85fb4b..e9b14f601 100644--- a/client/src/app/[site]/main/components/sections/Devices.tsx+++ b/client/src/app/[site]/main/components/sections/Devices.tsx@@ -25,12 +25,14 @@ export function Devices() {value={tab}onValueChange={(value) => setTab(value as Tab)}>- <TabsList>- <TabsTrigger value="browsers">Browsers</TabsTrigger>- <TabsTrigger value="devices">Devices</TabsTrigger>- <TabsTrigger value="os">Operating Systems</TabsTrigger>- <TabsTrigger value="dimensions">Screen Dimensions</TabsTrigger>- </TabsList>+ <div className="overflow-x-auto pb-1">+ <TabsList>+ <TabsTrigger value="browsers">Browsers</TabsTrigger>+ <TabsTrigger value="devices">Devices</TabsTrigger>+ <TabsTrigger value="os">Operating Systems</TabsTrigger>+ <TabsTrigger value="dimensions">Screen Dimensions</TabsTrigger>+ </TabsList>+ </div><TabsContent value="devices"><StandardSectionfilterParameter="device_type"