]> BookStack Code Mirror - bookstack/commitdiff
Truncate with three dots
authorBajszi <redacted>
Tue, 12 Sep 2023 15:03:57 +0000 (17:03 +0200)
committerBajszi <redacted>
Tue, 12 Sep 2023 19:10:25 +0000 (21:10 +0200)
app/Users/Models/User.php

index cbfdbef2dd6c43e326e27228bb1fe5b4ca308425..3efbeec70a87bed60ca700551799ebdabc9d04b3 100644 (file)
@@ -345,7 +345,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
             return $splitName[0];
         }
 
-        return mb_substr($this->name, 0, $chars) . '..';
+        return mb_substr($this->name, 0, $chars-3) . '…';
     }
 
     /**