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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Featured Image */}
|
{/* Featured Image — editorial standard: cap at 480px high. */}
|
||||||
<div className="mb-8 overflow-hidden rounded-sm">
|
<figure className="mb-8 overflow-hidden rounded-sm bg-[#F1F5F9] flex items-center justify-center" style={{maxHeight: 480}}>
|
||||||
<AppImage
|
<AppImage
|
||||||
src={article.image}
|
src={article.image}
|
||||||
alt={article.alt}
|
alt={article.alt}
|
||||||
width={800}
|
width={800}
|
||||||
height={450}
|
height={450}
|
||||||
className="w-full h-auto object-cover"
|
className="max-h-[480px] w-auto max-w-full object-contain"
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
</div>
|
</figure>
|
||||||
|
|
||||||
{/* Article Body */}
|
{/* Article Body */}
|
||||||
{/* DO NOT OVERRIDE — article body prose styles */}
|
{/* DO NOT OVERRIDE — article body prose styles */}
|
||||||
|
|||||||
@@ -442,17 +442,21 @@ export default function NewsArticleDetailClient({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Featured Image */}
|
{/* Featured Image — editorial standard:
|
||||||
<div className="mb-8 overflow-hidden rounded-sm">
|
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
|
<AppImage
|
||||||
src={article.image}
|
src={article.image}
|
||||||
alt={article.alt}
|
alt={article.alt}
|
||||||
width={800}
|
width={800}
|
||||||
height={450}
|
height={450}
|
||||||
className="w-full h-auto object-cover"
|
className="max-h-[480px] w-auto max-w-full object-contain"
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
</div>
|
</figure>
|
||||||
|
|
||||||
{/* Article Body — paragraphs interleaved with rotating 300×250 ads every 4 paragraphs */}
|
{/* Article Body — paragraphs interleaved with rotating 300×250 ads every 4 paragraphs */}
|
||||||
<ArticleBody
|
<ArticleBody
|
||||||
|
|||||||
Reference in New Issue
Block a user