diff --git a/web/pages/components/statistic.tsx b/web/pages/components/statistic.tsx index 45cca053e..64910e443 100644 --- a/web/pages/components/statistic.tsx +++ b/web/pages/components/statistic.tsx @@ -7,16 +7,18 @@ interface ItemProps { prefix: JSX.Element, color: string, progress?: boolean, + centered: boolean, }; export default function StatisticItem(props: ItemProps) { const { title, value, prefix } = props; const View = props.progress ? ProgressView : StatisticView; + const style = props.centered ? {display: 'flex', alignItems: 'center', justifyContent: 'center'} : {}; return ( -
+
diff --git a/web/pages/hardware-info.tsx b/web/pages/hardware-info.tsx index 122cc0671..8ae70a5df 100644 --- a/web/pages/hardware-info.tsx +++ b/web/pages/hardware-info.tsx @@ -81,6 +81,7 @@ const series = [ prefix={} color={series[0].color} progress + centered /> } color={series[1].color} progress + centered /> } color={series[2].color} progress + centered />