From ca783bcfdcd5f9b6aee4c152f4386bf0eebbafea Mon Sep 17 00:00:00 2001 From: Mohan Date: Fri, 14 Aug 2026 02:22:25 +0800 Subject: [PATCH] style(component): shrink word cloud font scale --- src/components/TagCloud.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TagCloud.vue b/src/components/TagCloud.vue index d60aa06..3c95b35 100644 --- a/src/components/TagCloud.vue +++ b/src/components/TagCloud.vue @@ -10,8 +10,8 @@ const loading = ref(false) const error = ref(null) const WIDTH = 260 -const MIN_FONT = 13 -const MAX_FONT = 30 +const MIN_FONT = 11 +const MAX_FONT = 22 interface PlacedTag { tag: Tag @@ -25,7 +25,7 @@ const placedTags = ref([]) const viewBox = ref('0 0 260 40') function fontScale(count: number, max: number): number { - if (max <= 1) return 20 + if (max <= 1) return 16 return MIN_FONT + (count / max) * (MAX_FONT - MIN_FONT) }