From a5b6fa5d9ae470d5ccb47ca348354e34ec72a4d5 Mon Sep 17 00:00:00 2001 From: JiyoungHyun Date: Sat, 17 Jul 2021 07:37:55 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20=EB=B2=94=EC=9C=84=20=EB=84=98?= =?UTF-8?q?=EC=96=B4=EA=B0=80=EB=8A=94=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=95=88=EB=B3=B4=EC=9D=B4=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/molecules/Concert/index.tsx | 16 ++++++++++++---- src/components/molecules/Notice/index.tsx | 12 ++++++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/components/molecules/Concert/index.tsx b/src/components/molecules/Concert/index.tsx index b7e6eaee..d36aa896 100644 --- a/src/components/molecules/Concert/index.tsx +++ b/src/components/molecules/Concert/index.tsx @@ -85,18 +85,26 @@ const SConcert = Styled.div` flex-direction: column; width: 524px; height: 84px; - overflow: hidden; - text-overflow: ellipsis; line-height: 1.38; color: #0d0d0d; font-size: 16px; font-weight: bold; - & p:nth-of-type(2) { + & p:nth-of-type(2) { + display: -webkit-box; margin-top: 12px; + width: 524px; + height: 2.79em; + overflow: hidden; + text-align: left; + text-overflow: ellipsis; line-height: 1.5; + white-space:normal; + word-wrap: break-word; color: #3d3d3d; font-size: 14px; - font-weight: normal; + font-weight: normal; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; } } .content__right { diff --git a/src/components/molecules/Notice/index.tsx b/src/components/molecules/Notice/index.tsx index 5bb811f7..c6737a81 100644 --- a/src/components/molecules/Notice/index.tsx +++ b/src/components/molecules/Notice/index.tsx @@ -81,18 +81,26 @@ const SNotice = Styled.div` flex-direction: column; width: 524px; height: 84px; - overflow: hidden; - text-overflow: ellipsis; line-height: 1.38; color: #0d0d0d; font-size: 16px; font-weight: bold; & p:nth-of-type(2) { + display: -webkit-box; margin-top: 12px; + width: 524px; + height: 2.79em; + overflow: hidden; + text-align: left; + text-overflow: ellipsis; line-height: 1.5; + white-space:normal; + word-wrap: break-word; color: #3d3d3d; font-size: 14px; font-weight: normal; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; } } .content__right {