From d5b8803f121b17ddb49c125d72a5b1e0a91c13cf Mon Sep 17 00:00:00 2001 From: ItzCrazyKns Date: Sun, 14 Apr 2024 17:15:18 +0530 Subject: [PATCH] feat(navbar): Use trimmed content --- ui/components/Navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/Navbar.tsx b/ui/components/Navbar.tsx index 2849ede..9e0b483 100644 --- a/ui/components/Navbar.tsx +++ b/ui/components/Navbar.tsx @@ -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(