diff --git a/front/components/About/AboutChartView.vue b/front/components/About/AboutChartView.vue index e3c1157..fdc9471 100644 --- a/front/components/About/AboutChartView.vue +++ b/front/components/About/AboutChartView.vue @@ -3,6 +3,7 @@ import { cx } from 'class-variance-authority' import { useQuery } from '@tanstack/vue-query' import { Skeleton } from '@/components/ui/skeleton' import dayjs from 'dayjs' +import { filesize } from 'filesize' import { times } from 'lodash-es' import type { ChartConfig } from '@/components/ui/chart' import { VisArea, VisAxis, VisLine, VisXYContainer } from '@unovis/vue' @@ -209,8 +210,15 @@ const currentChartData = computed((): AreaChartConfig => { :key="currentChartTab" :template=" componentToString(currentChartData.config, ChartTooltipContent, { + class: 'w-[14rem]', labelFormatter: (d) => { - return dayjs(d).format('MMM D') + return dayjs(d).format('MM-DD') + }, + valueFormatter: (value, key) => { + if (key === 'file_size' && typeof value === 'number') { + return filesize(value) + } + return String(value) }, }) " diff --git a/front/components/Tiptap/Index.vue b/front/components/Tiptap/Index.vue index b979245..b99107c 100644 --- a/front/components/Tiptap/Index.vue +++ b/front/components/Tiptap/Index.vue @@ -60,7 +60,10 @@ onUnmounted(() => { > -