feat(navbar): Use trimmed content

This commit is contained in:
ItzCrazyKns 2024-04-14 17:15:18 +05:30
parent 334e657ddd
commit d5b8803f12
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const Navbar = ({ messages }: { messages: Message[] }) => {
if (messages.length > 0) {
const newTitle =
messages[0].content.length > 20
? `${messages[0].content.substring(0, 20)}...`
? `${messages[0].content.substring(0, 20).trim()}...`
: messages[0].content;
setTitle(newTitle);
const newTimeAgo = formatTimeDifference(