From e7cbabb2857a661975b3e334fb145f3686866216 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 24 May 2024 22:28:35 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20-=20=ED=85=8D?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EB=B7=B0=EC=9D=98=20width=EB=A5=BC=20screenS?= =?UTF-8?q?ize().width=20-=2042=EB=A1=9C=20=EC=84=A4=EC=A0=95=ED=95=98?= =?UTF-8?q?=EC=97=AC=20=EC=95=84=EC=9D=B4=ED=85=9C=EC=97=90=20horizontal?= =?UTF-8?q?=20padding=EC=9D=B4=20=EC=A0=81=EC=9A=A9=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreatorCommunity/All/CreatorCommunityAllItemView.swift | 7 ++++--- .../CreatorCommunity/All/CreatorCommunityAllView.swift | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift index 901695e..1a6f584 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllItemView.swift @@ -71,19 +71,19 @@ struct CreatorCommunityAllItemView: View { if item.price <= 0 || item.existOrdered { DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue) .frame( - width: screenSize().width - 16, + width: screenSize().width - 42, height: textHeight ) .onAppear { self.textHeight = self.estimatedHeight( for: item.content, - width: screenSize().width - 16 + width: screenSize().width - 42 ) } .onChange(of: item.content) { newText in self.textHeight = self.estimatedHeight( for: newText, - width: screenSize().width - 16 + width: screenSize().width - 42 ) } @@ -135,6 +135,7 @@ struct CreatorCommunityAllItemView: View { .padding(.vertical, 11) .background(Color.gray22) .cornerRadius(5.3) + .padding(.horizontal, 13.3) } private func estimatedHeight(for text: String, width: CGFloat) -> CGFloat { diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift index 91357b3..5fb361e 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift @@ -56,7 +56,6 @@ struct CreatorCommunityAllView: View { } } } - .padding(5.3) } } .sheet(