diff --git a/packages/translation/src/lang/en.ts b/packages/translation/src/lang/en.ts index d6e3539a8..661d05093 100644 --- a/packages/translation/src/lang/en.ts +++ b/packages/translation/src/lang/en.ts @@ -680,8 +680,8 @@ export default { internalServerError: "Failed to fetch DNS Hole Summary", }, data: { - adsBlockedToday: "blocked today", - adsBlockedTodayPercentage: "blocked today", + adsBlockedToday: "Blocked today", + adsBlockedTodayPercentage: "Blocked today", dnsQueriesToday: "Queries today", domainsBeingBlocked: "Domains on blocklist", }, diff --git a/packages/widgets/src/dns-hole/summary/component.tsx b/packages/widgets/src/dns-hole/summary/component.tsx index 915e6a2bd..8eb1a8a02 100644 --- a/packages/widgets/src/dns-hole/summary/component.tsx +++ b/packages/widgets/src/dns-hole/summary/component.tsx @@ -1,7 +1,7 @@ "use client"; import type { BoxProps } from "@mantine/core"; -import { Box, Card, Center, Flex, Text } from "@mantine/core"; +import { Box, Card, Flex, Text } from "@mantine/core"; import { useElementSize } from "@mantine/hooks"; import { IconBarrierBlock, IconPercentage, IconSearch, IconWorldWww } from "@tabler/icons-react"; @@ -93,35 +93,46 @@ const StatCard = ({ item, data, usePiHoleColors }: StatCardProps) => { return ( -
- - - - - {item.value(data, t)} + + + + + {item.value(data, t)} + + {item.label && ( + + {translateIfNecessary(t, item.label)} - {item.label && ( - - {translateIfNecessary(t, item.label)} - - )} - + )} -
+
); };