Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/assets/campaign-proposal-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion app/routes/brand-detail/components/BrandActionBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import HeartButton from "../../home/components/HeartButton";
import proposalIconUrl from "../../../assets/campaign-proposal-icon.svg";

type Props = {
isHearted: boolean;
Expand Down Expand Up @@ -26,8 +27,9 @@ export default function BrandActionBar({
<button
type="button"
onClick={onSuggest}
className="flex h-[30px] flex-1 items-center justify-center rounded-[6px] bg-[#EBEEFB] px-4 text-title3 text-text-black"
className="flex h-[30px] flex-1 items-center justify-center gap-1.5 rounded-[6px] bg-[#EBEEFB] px-4 text-title3 text-text-black"
>
<img src={proposalIconUrl} alt="" className="h-4 w-4 select-none" draggable={false} />
제안하기
</button>

Expand Down
11 changes: 3 additions & 8 deletions app/routes/brand-detail/components/ProductMiniCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div
className="w-[120px] md:w-[140px] lg:w-[160px] shrink-0 mt-2 mb-2.5 cursor-pointer"
className="w-[150px] md:w-[170px] lg:w-[190px] shrink-0 mt-2 mb-2.5 cursor-pointer"
onClick={onClick}
role="button"
>
Expand All @@ -29,8 +24,8 @@ export default function ProductMiniCard({ item, onClick }: Props) {
/>
</div>

<div className="mt-2 text-title1 text-text-black">
{ellipsis10(item.productName)}
<div className="mt-2 line-clamp-1 text-title1 text-text-black">
{item.productName}
</div>
</div>
);
Expand Down
Loading