diff --git a/src/widgets/dnshole/DnsHoleSummary.tsx b/src/widgets/dnshole/DnsHoleSummary.tsx index 6a525eb00..9b25e5efd 100644 --- a/src/widgets/dnshole/DnsHoleSummary.tsx +++ b/src/widgets/dnshole/DnsHoleSummary.tsx @@ -9,7 +9,6 @@ import { TablerIconsProps, } from '@tabler/icons-react'; import { useTranslation } from 'next-i18next'; -import React from 'react'; import { useConfigContext } from '~/config/provider'; import { RouterOutputs, api } from '~/utils/api'; @@ -120,6 +119,7 @@ type StatCardProps = { const StatCard = ({ item, data, usePiHoleColors }: StatCardProps) => { const { t } = useTranslation('modules/dns-hole-summary'); const { ref, height, width } = useElementSize(); + const isLong = width > height + 20; return ( { w="100%" align="center" justify="space-evenly" - direction={width > height + 20 ? 'row' : 'column'} + direction={isLong ? 'row' : 'column'} >