From 0547a2d483019d7059f65ab6f3e73bb242e2a100 Mon Sep 17 00:00:00 2001 From: xgopilot Date: Wed, 26 Nov 2025 06:01:20 +0000 Subject: [PATCH] fix: preserve text formatting with line breaks and paragraphs - Add whiteSpace: 'pre-wrap' to ItemCard text display - Add whiteSpace: 'pre-wrap' to ShareCard text display - Fixes issue #70 where multi-paragraph text was compressed Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: minorcell <120795714+minorcell@users.noreply.github.com> --- src/components/ItemCard.tsx | 1 + src/components/ShareCard.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ItemCard.tsx b/src/components/ItemCard.tsx index 108430b..682f069 100644 --- a/src/components/ItemCard.tsx +++ b/src/components/ItemCard.tsx @@ -191,6 +191,7 @@ export default function ItemCard({ ( textAlign: "justify", textIndent: "2em", wordBreak: "break-word", + whiteSpace: "pre-wrap", fontFamily: "'Noto Serif SC', 'Songti SC', serif" }}> {truncateText(item.content, maxLength)}