优化月视图单量姓名截断

This commit is contained in:
2026-07-03 00:50:28 +08:00
parent 5a1411229a
commit db7dc1fd21
+2 -2
View File
@@ -331,7 +331,8 @@ const buildExpandedBlocks = (counts: NormalizedCount[]): MonthBlock[] => {
}
const resolveMonthCountName = (count: NormalizedCount): string => {
return String(count.artistName || count.shortName || '?').slice(0, 3)
const name = String(count.artistName || count.shortName || '?')
return name.length > 4 ? `${name.slice(0, 4)}..` : name
}
const buildMonthDays = (): MonthDay[] => {
@@ -917,7 +918,6 @@ onMounted(() => {
overflow: hidden;
font-weight: 800;
text-align: left;
text-overflow: ellipsis;
}
.month-bars span em {