Adjust text box sizes to fit content precisely

Trim whitespace from article content and adjust line-height for better text fitting within the article display.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 069d4324-6c40-4355-955e-c714a50de1ea
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/069d4324-6c40-4355-955e-c714a50de1ea/BkMEyqX
This commit is contained in:
kimjaehyeon0101
2025-09-30 03:44:46 +00:00
parent 82d8ccafc3
commit bf323d8e0a

View File

@ -202,13 +202,13 @@ export default function Article() {
key={index} key={index}
className="text-lg font-bold mt-8 mb-3 text-gray-900" className="text-lg font-bold mt-8 mb-3 text-gray-900"
> >
{part.content} {part.content.trim()}
</h3> </h3>
); );
} }
return ( return (
<p key={index} className="mb-3 whitespace-pre-wrap leading-tight"> <p key={index} className="mb-3 whitespace-pre-wrap leading-relaxed">
{part.content} {part.content.trim()}
</p> </p>
); );
})} })}