Adjust spacing for article titles, subtitles, and body content

Update `client/src/pages/Article.tsx` to decrease margin between excerpt and title, and increase line-height for article body.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0fb68265-c270-4198-9584-3d9be9bddb41
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
kimjaehyeon0101
2025-09-30 03:48:59 +00:00
parent 9a6083d2ab
commit 07083ca152

View File

@ -185,7 +185,7 @@ export default function Article() {
<header className="mb-10">
<h1 className="text-4xl font-bold mb-6 text-gray-900 leading-tight" data-testid="text-article-title">{article.title}</h1>
{article.excerpt && (
<p className="text-lg text-gray-600 mb-8 leading-relaxed" data-testid="text-article-excerpt">
<p className="text-lg text-gray-600 mb-2 leading-relaxed" data-testid="text-article-excerpt">
{article.excerpt}
</p>
)}
@ -207,7 +207,7 @@ export default function Article() {
);
}
return (
<p key={index} className="mb-3 whitespace-pre-wrap leading-relaxed">
<p key={index} className="mb-3 whitespace-pre-wrap leading-loose">
{part.content.trim()}
</p>
);