mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix: Only one ellipse is displayed
This commit is contained in:
parent
3163f6c9b1
commit
8728feaa37
@ -31,11 +31,7 @@ export default ({ app = {} }) => {
|
||||
if (length <= 0) {
|
||||
return value
|
||||
}
|
||||
let output = trunc(value, length).html
|
||||
if (output.length < value.length) {
|
||||
output += ' …'
|
||||
}
|
||||
return output
|
||||
return trunc(value, length).html
|
||||
},
|
||||
list: (value, glue = ', ', truncate = 0) => {
|
||||
if (!Array.isArray(value) || !value.length) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user