💄 Fix time filter background in analytics

This commit is contained in:
Baptiste Arnaud 2025-09-17 14:26:12 +02:00
parent 33b36d76fc
commit f96d2aa21f
No known key found for this signature in database

View File

@ -39,7 +39,7 @@ export const StatsCards = ({
alignItems="center"
{...props}
>
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md">
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md" borderWidth={1}>
<StatLabel>{t("analytics.viewsLabel")}</StatLabel>
{stats ? (
<StatNumber>{stats.totalViews}</StatNumber>
@ -47,7 +47,7 @@ export const StatsCards = ({
<Skeleton w="50%" h="10px" mt="2" />
)}
</Stat>
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md">
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md" borderWidth={1}>
<StatLabel>{t("analytics.startsLabel")}</StatLabel>
{stats ? (
<StatNumber>{stats.totalStarts}</StatNumber>
@ -55,7 +55,7 @@ export const StatsCards = ({
<Skeleton w="50%" h="10px" mt="2" />
)}
</Stat>
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md">
<Stat bgColor={bg} p="4" rounded="md" boxShadow="md" borderWidth={1}>
<StatLabel>{t("analytics.completionRateLabel")}</StatLabel>
{stats ? (
<StatNumber>
@ -71,7 +71,7 @@ export const StatsCards = ({
<TimeFilterSelect
timeFilter={timeFilter}
onTimeFilterChange={onTimeFilterChange}
className="shadow-md"
className="shadow-md bg-gray-1"
/>
</SimpleGrid>
);