From c44adfae610f6ea40d33198380ca5e095cd24d60 Mon Sep 17 00:00:00 2001 From: parkyejin Date: Thu, 5 Sep 2024 00:13:02 +0900 Subject: [PATCH] =?UTF-8?q?design(#63):=20=EC=B5=9C=EA=B7=BC=20=EB=A9=94?= =?UTF-8?q?=EC=84=B8=EC=A7=80=20=EB=82=B4=EC=97=AD=2010=EA=B8=80=EC=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/chatting/page.tsx | 4 ++-- src/components/chatting/ChattingMessage.tsx | 8 ++++---- src/components/chatting/ChattingProfile.tsx | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/chatting/page.tsx b/src/app/chatting/page.tsx index b901a7d..c5bdbce 100644 --- a/src/app/chatting/page.tsx +++ b/src/app/chatting/page.tsx @@ -216,7 +216,7 @@ const Chatting = () => { )} -
+
{messages.length > 0 ? ( messages.map((msg, index) => { const currentRoom = @@ -225,7 +225,7 @@ const Chatting = () => { (room) => room.chatRoomId === currentChatRoomId, ) return ( -
+
{ return (
{ {!isMine && ( profile )}
{ + const truncatedMessage = + lastMessage.length > 10 ? `${lastMessage.slice(0, 10)}...` : lastMessage + return (
{lastSendAt}
)}
-
{lastMessage}
+
{truncatedMessage}
)