Skip to content

Commit

Permalink
add pre wrap to product desc & reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghy2130 committed Oct 15, 2024
1 parent 940318a commit 289a013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/routes/product.$productID/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export default function ProductDetails({ productInfo }: Props) {
<h1 className="mt-10 text-xl font-medium text-primaryColor">
About this product
</h1>
<p className="text-md sm:text-lg">{productInfo.description}</p>
<p className="text-md whitespace-pre-wrap sm:text-lg">
{productInfo.description}
</p>

<div className="sm:text-md mt-3 flex flex-wrap gap-x-2 gap-y-2 text-sm text-textColor1">
{productInfo.tags.map((tag) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function ReviewCard({ review }: Props) {
</div>
</div>

<p className="pt-1">{review.feedback}</p>
<p className="whitespace-pre-wrap pt-1">{review.feedback}</p>
</div>
);
}
Expand Down

0 comments on commit 289a013

Please sign in to comment.