From d858c0d3406d3ba6d1151d18318cae877714d0ad Mon Sep 17 00:00:00 2001 From: diwakarmk7 Date: Thu, 22 May 2025 07:18:33 +0530 Subject: [PATCH] fix(collab): username display difference fix --- .../Collab/ThreadPopup/CommentTextArea.tsx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.tsx b/src/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.tsx index 203842dc..01275762 100644 --- a/src/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.tsx +++ b/src/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.tsx @@ -102,12 +102,22 @@ const MentionSuggestionsList: React.FC<{ tabIndex={-1} aria-selected={index === selectedIndex} > - {(user.display?.length || 0) > 20 ? ( - - {(user.display || "").substring(0, 18) + "..."} - + {user.display == user.email ? ( + user.display.length > 20 ? ( + + {(user.display || "").substring(0, 18) + "..."} + + ) : ( + user.display + ) ) : ( - user.display || "" + + {user.display.length > 20 + ? (user.display || "").substring(0, 18) + "..." + : user.display} + )} ))}