From 4092659baac921c7d6c151078cddbd2e89f77f9b Mon Sep 17 00:00:00 2001 From: arys Date: Fri, 30 Jan 2026 17:21:34 +0500 Subject: [PATCH] fix --- src/components/marketing/PptKpiCard.vue | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/components/marketing/PptKpiCard.vue b/src/components/marketing/PptKpiCard.vue index bd6fdfb..6063a5b 100644 --- a/src/components/marketing/PptKpiCard.vue +++ b/src/components/marketing/PptKpiCard.vue @@ -28,10 +28,7 @@
-
+
{{ value }}
@@ -55,16 +52,6 @@ const props = defineProps({ description: { type: String, default: '' } }); -const valueFontSize = computed(() => { - const valStr = String(props.value ?? ''); - const len = valStr.length; - if (len > 20) return 'text-[20px]'; - if (len > 16) return 'text-[24px]'; - if (len > 12) return 'text-[28px]'; - if (len > 10) return 'text-[32px]'; - return 'text-[38px]'; -}); - function hexToRgba(hex, alpha) { const h = String(hex || '') .replace('#', '') @@ -72,9 +59,9 @@ function hexToRgba(hex, alpha) { const full = h.length === 3 ? h - .split('') - .map((c) => c + c) - .join('') + .split('') + .map((c) => c + c) + .join('') : h; if (full.length !== 6) return `rgba(91, 137, 255, ${alpha})`; const r = parseInt(full.slice(0, 2), 16);