优化月视图单量姓名截断
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user