From cd4418797b6a64793a967d1d73ec6244f914ca5a Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Sun, 12 Jan 2025 22:03:20 +0800 Subject: [PATCH] fix(chart): invalid chart legend size --- apps/www/src/lib/registry/default/ui/chart/ChartLegend.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/src/lib/registry/default/ui/chart/ChartLegend.vue b/apps/www/src/lib/registry/default/ui/chart/ChartLegend.vue index 3c4420869..03fb64a4b 100644 --- a/apps/www/src/lib/registry/default/ui/chart/ChartLegend.vue +++ b/apps/www/src/lib/registry/default/ui/chart/ChartLegend.vue @@ -20,7 +20,7 @@ onMounted(() => { const selector = `.${BulletLegend.selectors.item}` nextTick(() => { const elements = elRef.value?.querySelectorAll(selector) - const classes = buttonVariants({ variant: 'ghost', size: 'xs' }).split(' ') + const classes = buttonVariants({ variant: 'ghost', size: 'sm' }).split(' ') elements?.forEach(el => el.classList.add(...classes, '!inline-flex', '!mr-2')) }) })