From dc4203a5456b2e5e186369abb18344ea72313dcc Mon Sep 17 00:00:00 2001 From: BangDori Date: Fri, 18 Aug 2023 04:33:02 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20=ED=99=88=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EC=99=80=20=ED=94=84=EB=A1=9C=ED=95=84=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=9D=BC=EB=B6=80?= =?UTF-8?q?=EB=B6=84=EB=A7=8C=20=EB=85=B8=EC=B6=9C=EC=8B=9C=ED=82=A4?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/post/PostItem.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/home/post/PostItem.js b/src/components/home/post/PostItem.js index 47b178e..fe60995 100644 --- a/src/components/home/post/PostItem.js +++ b/src/components/home/post/PostItem.js @@ -65,7 +65,13 @@ const PostItem = ({ post }) => { {isLink && ( -
{formattedContent}
+
+ {content.replace(/\\r\\n/g, ' ').slice(0, 360)} + +

+ {content.length >= 360 && '더보기.....'} +

+
)} {!isLink &&
{formattedContent}
}