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:
@ -185,7 +185,7 @@ export default function Article() {
|
|||||||
<header className="mb-10">
|
<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>
|
<h1 className="text-4xl font-bold mb-6 text-gray-900 leading-tight" data-testid="text-article-title">{article.title}</h1>
|
||||||
{article.excerpt && (
|
{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}
|
{article.excerpt}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
@ -207,7 +207,7 @@ export default function Article() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
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()}
|
{part.content.trim()}
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user