Skip to content

Commit 7836012

Browse files
authored
Merge pull request #274 from map-of-pi/fix/buy-items-line-break
Approved (1).
2 parents f0ef493 + be5f327 commit 7836012

File tree

1 file changed

+9
-3
lines changed
  • src/app/[locale]/seller/sale-items/[id]

1 file changed

+9
-3
lines changed

src/app/[locale]/seller/sale-items/[id]/page.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,16 @@ export default function BuyFromSellerForm({ params }: { params: { id: string } }
127127
</div>
128128
</div>
129129

130-
{/* Seller Details/ Description */}
130+
{/* Seller Details/Description */}
131131
<h2 className={SUBHEADER}>{t('SCREEN.BUY_FROM_SELLER.SELLER_DETAILS_LABEL')}</h2>
132-
<div className="seller_item_container mb-5">
133-
<p className="mb-3">{sellerShopInfo.description}</p>
132+
<div className="seller_item_container">
133+
134+
{/* Seller's description with line breaks */}
135+
<div className="seller-description-display">
136+
<p className='mb-5' style={{ whiteSpace: 'pre-wrap' }}>
137+
{sellerShopInfo.description}
138+
</p>
139+
</div>
134140
</div>
135141

136142
{/* Seller Address/ Position */}

0 commit comments

Comments
 (0)