diff --git a/src/constants/index.ts b/src/constants/index.ts index 35995c2..aa9ddee 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -47,7 +47,7 @@ export enum ROUTES { export const CHART_MAX_XAXIS = 10 export const DEFAULT_CHART_OPTIONS: ApexOptions = { - title: { align: 'center', style: { color: 'gray' } }, + title: { align: 'center', style: { color: 'gray', fontSize: '8px' } }, chart: { toolbar: { show: false }, zoom: { enabled: false }, @@ -55,9 +55,10 @@ export const DEFAULT_CHART_OPTIONS: ApexOptions = { }, noData: { text: 'Loading...' }, legend: { - fontSize: '14px', + showForSingleSeries: true, + fontSize: '8px', labels: { colors: 'gray' }, - itemMargin: { horizontal: 64 }, + itemMargin: { horizontal: 32 }, }, dataLabels: { enabled: false }, grid: { yaxis: { lines: { show: false } } }, @@ -70,7 +71,7 @@ export const DEFAULT_CHART_OPTIONS: ApexOptions = { }, yaxis: { labels: { - style: { colors: 'gray' }, + style: { colors: 'gray', fontSize: '8px' }, formatter: (val) => byteSize(val).toString(), }, }, diff --git a/src/pages/Config.tsx b/src/pages/Config.tsx index fad9661..90be4b8 100644 --- a/src/pages/Config.tsx +++ b/src/pages/Config.tsx @@ -188,13 +188,13 @@ const ConfigForm = () => { {t('updateGEODatabases')} - - + + ) diff --git a/src/pages/Overview.tsx b/src/pages/Overview.tsx index 94df132..cee6079 100644 --- a/src/pages/Overview.tsx +++ b/src/pages/Overview.tsx @@ -19,9 +19,9 @@ import { secret, wsEndpointURL } from '~/signals' import type { Connection } from '~/types' const TrafficWidget: ParentComponent<{ label: JSX.Element }> = (props) => ( -
+
{props.label}
-
+
{children(() => props.children)()}
@@ -102,7 +102,9 @@ export default () => { merge({ title: { text: t('memory') } }, DEFAULT_CHART_OPTIONS), ) - const memoryChartSeries = createMemo(() => [{ data: memories() }]) + const memoryChartSeries = createMemo(() => [ + { name: t('memory'), data: memories() }, + ]) const connectionsWS = createReconnectingWS( `${wsEndpointURL()}/connections?token=${secret()}`,