From 0166c80c950a60caa0d8208b91c279d4686378be Mon Sep 17 00:00:00 2001 From: Yoonchulchung Date: Thu, 12 Feb 2026 18:07:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=98=84=EC=B0=AC=20=EA=B0=80=EB=8A=A5?= =?UTF-8?q?=20=EC=A0=9C=ED=92=88=20=EC=82=AC=EC=9D=B4=EC=A6=88=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/campaign-proposal-icon.svg | 15 +++++++++++++++ .../brand-detail/components/BrandActionBar.tsx | 4 +++- .../brand-detail/components/ProductMiniCard.tsx | 11 +++-------- 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 app/assets/campaign-proposal-icon.svg diff --git a/app/assets/campaign-proposal-icon.svg b/app/assets/campaign-proposal-icon.svg new file mode 100644 index 0000000..05f45b8 --- /dev/null +++ b/app/assets/campaign-proposal-icon.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/app/routes/brand-detail/components/BrandActionBar.tsx b/app/routes/brand-detail/components/BrandActionBar.tsx index 4b8a85d..cc28683 100644 --- a/app/routes/brand-detail/components/BrandActionBar.tsx +++ b/app/routes/brand-detail/components/BrandActionBar.tsx @@ -1,4 +1,5 @@ import HeartButton from "../../home/components/HeartButton"; +import proposalIconUrl from "../../../assets/campaign-proposal-icon.svg"; type Props = { isHearted: boolean; @@ -26,8 +27,9 @@ export default function BrandActionBar({ diff --git a/app/routes/brand-detail/components/ProductMiniCard.tsx b/app/routes/brand-detail/components/ProductMiniCard.tsx index 1fecb2d..091565b 100644 --- a/app/routes/brand-detail/components/ProductMiniCard.tsx +++ b/app/routes/brand-detail/components/ProductMiniCard.tsx @@ -9,15 +9,10 @@ type Props = { onClick?: () => void; }; -const ellipsis10 = (text?: string | null) => { - const safe = (text ?? "").toString(); - return safe.length > 10 ? `${safe.slice(0, 10)}...` : safe; -}; - export default function ProductMiniCard({ item, onClick }: Props) { return (
@@ -29,8 +24,8 @@ export default function ProductMiniCard({ item, onClick }: Props) { />
-
- {ellipsis10(item.productName)} +
+ {item.productName}
);