diff --git a/.changeset/green-baboons-sip.md b/.changeset/green-baboons-sip.md new file mode 100644 index 000000000..b117d9813 --- /dev/null +++ b/.changeset/green-baboons-sip.md @@ -0,0 +1,5 @@ +--- +'hostd': patch +--- + +Fixed an issue where the metrics graphs were much wider than the screen. Closes https://github.com/SiaFoundation/hostd/issues/500 diff --git a/.changeset/spotty-chefs-hang.md b/.changeset/spotty-chefs-hang.md new file mode 100644 index 000000000..4bb2a045a --- /dev/null +++ b/.changeset/spotty-chefs-hang.md @@ -0,0 +1,5 @@ +--- +'@siafoundation/design-system': patch +--- + +Fixed a bug with ScrollArea where it would adopt its contents width. diff --git a/apps/hostd/components/Home/HomeBandwidth.tsx b/apps/hostd/components/Home/HomeBandwidth.tsx index 7cfcb2c36..3e6f52ee1 100644 --- a/apps/hostd/components/Home/HomeBandwidth.tsx +++ b/apps/hostd/components/Home/HomeBandwidth.tsx @@ -11,7 +11,7 @@ import { useMetrics } from '../../contexts/metrics' export function HomeBandwidth() { const { bandwidth } = useMetrics() return ( -
+
Bandwidth -
- Operations - - - - - + Operations + + - - Operations - - - } + enabledModes={['total', 'average', 'latest']} + valueFormat={humanNumber} /> -
+ +
+ + + Operations + + + } + />
) } diff --git a/apps/hostd/components/Home/HomeStorage.tsx b/apps/hostd/components/Home/HomeStorage.tsx index ced69c69f..8d178a38f 100644 --- a/apps/hostd/components/Home/HomeStorage.tsx +++ b/apps/hostd/components/Home/HomeStorage.tsx @@ -11,7 +11,7 @@ import { useMetrics } from '../../contexts/metrics' export function HomeStorage() { const { storage } = useMetrics() return ( -
+
Storage {children}