We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36042cf commit 8b616d5Copy full SHA for 8b616d5
1 file changed
docs/.vitepress/theme/components/HomeTagStream.vue
@@ -73,12 +73,13 @@ function buildTagStats(notes: NoteItem[]): TagStat[] {
73
}
74
75
const maxCount = Math.max(...entries.map(([, count]) => count))
76
- const minSize = 14
77
- const maxSize = 34
+ // Keep single-occurrence tags at normal body text size.
+ const minSize = 16
78
+ const maxSize = 22
79
80
return entries
81
.map(([tag, count]) => {
- const ratio = maxCount <= 1 ? 1 : count / maxCount
82
+ const ratio = maxCount <= 1 ? 0 : (count - 1) / (maxCount - 1)
83
const size = Math.round(minSize + (maxSize - minSize) * ratio)
84
return {
85
tag,
0 commit comments