Skip to content

Commit e1d1ad9

Browse files
bendichterclaude
andcommitted
Show news header images at natural aspect ratio
The news article header forced every image into a fixed 240px-tall box with object-fit: cover, which cropped the top and bottom of wide banners (and the sides on narrow screens). The NeuroDataReHack 2026 banner is 3:1 and was visibly clipped. Let the header image size to its natural aspect ratio so the full banner is shown. All current news header images are landscape, so none render unusually tall. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VhJgo7TdFYpPiuBehNr9im
1 parent fd997ed commit e1d1ad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/news/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 class="inter-700 dark-900 text-48-responsive">{{ .Title | markdownify }}</h3
3232
<div class="col-lg-9">
3333
<div>
3434
<img src="{{ .Params.image }}" alt="" class="rounded-top-3"
35-
style="width: 100% !important; height: 240px !important; object-fit: cover !important;">
35+
style="width: 100% !important; height: auto !important;">
3636
</div>
3737
<div class="mt-4 bg-white px-5 py-2">
3838
<div class="d-flex flex-column flex-sm-row gap-3">

0 commit comments

Comments
 (0)