refactor(ScriptTable): 备注最大长度调整为10汉字/字母

This commit is contained in:
2025-09-02 01:41:53 +08:00
parent 68df1d5332
commit 0162e1a9b7

View File

@@ -382,7 +382,7 @@ function get_annihilation_name(annihilation_name) {
return '未开启'
}
const truncateText = (text: string, maxLength: number = 20): string => {
const truncateText = (text: string, maxLength: number = 10): string => {
if (!text) return ''
return text.length > maxLength ? text.substring(0, maxLength) + '...' : text
}