From 82966c3f7a6420723cf4e48ba18895a5e1fda29a Mon Sep 17 00:00:00 2001 From: vinu tv Date: Wed, 16 Oct 2024 13:56:38 +0530 Subject: [PATCH] Implement truncation for sidebar user card username to handle overflow --- src/Components/Common/Sidebar/SidebarUserCard.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Components/Common/Sidebar/SidebarUserCard.tsx b/src/Components/Common/Sidebar/SidebarUserCard.tsx index aafaf96a87f..f963f5a2860 100644 --- a/src/Components/Common/Sidebar/SidebarUserCard.tsx +++ b/src/Components/Common/Sidebar/SidebarUserCard.tsx @@ -43,11 +43,13 @@ const SidebarUserCard: React.FC = ({ shrinked }) => { className="w-8 text-sm font-medium" /> - {!shrinked && ( - - {formatName(user)} - - )} +
+ {!shrinked && ( +

+ {formatName(user)} +

+ )} +