ui(article): editorial standard — cap featured image at 480px (mirror of BB)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -341,17 +341,17 @@ export default function ArticleDetailClient({ article, relatedArticles, relatedF
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Featured Image */}
|
||||
<div className="mb-8 overflow-hidden rounded-sm">
|
||||
{/* Featured Image — editorial standard: cap at 480px high. */}
|
||||
<figure className="mb-8 overflow-hidden rounded-sm bg-[#F1F5F9] flex items-center justify-center" style={{maxHeight: 480}}>
|
||||
<AppImage
|
||||
src={article.image}
|
||||
alt={article.alt}
|
||||
width={800}
|
||||
height={450}
|
||||
className="w-full h-auto object-cover"
|
||||
className="max-h-[480px] w-auto max-w-full object-contain"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</figure>
|
||||
|
||||
{/* Article Body */}
|
||||
{/* DO NOT OVERRIDE — article body prose styles */}
|
||||
|
||||
@@ -442,17 +442,21 @@ export default function NewsArticleDetailClient({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Featured Image */}
|
||||
<div className="mb-8 overflow-hidden rounded-sm">
|
||||
{/* Featured Image — editorial standard:
|
||||
cap visual height at 480px AND container at 16:9 aspect.
|
||||
Wide images shrink to fit width; tall/portrait images are
|
||||
letterboxed against the slate background instead of
|
||||
ballooning the layout. */}
|
||||
<figure className="mb-8 overflow-hidden rounded-sm bg-[#F1F5F9] flex items-center justify-center" style={{maxHeight: 480}}>
|
||||
<AppImage
|
||||
src={article.image}
|
||||
alt={article.alt}
|
||||
width={800}
|
||||
height={450}
|
||||
className="w-full h-auto object-cover"
|
||||
className="max-h-[480px] w-auto max-w-full object-contain"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</figure>
|
||||
|
||||
{/* Article Body — paragraphs interleaved with rotating 300×250 ads every 4 paragraphs */}
|
||||
<ArticleBody
|
||||
|
||||
Reference in New Issue
Block a user