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) }