Skip to content

Fix squished banners in Recent News thumbnails#160

Open
bendichter wants to merge 1 commit into
mainfrom
fix-recent-news-thumbnail-aspect
Open

Fix squished banners in Recent News thumbnails#160
bendichter wants to merge 1 commit into
mainfrom
fix-recent-news-thumbnail-aspect

Conversation

@bendichter

Copy link
Copy Markdown
Contributor

Problem

The Recent News sidebar (on news list and single pages) renders each thumbnail in a fixed 90×70 box via width/height attributes, with no object-fit. Wide banner images (roughly 2.4:1) get distorted/squished to fit that near-square box.

Fix

Add style="object-fit: cover;" to the thumbnail <img> in both templates so the image crops to fill the box while preserving its aspect ratio, matching how the larger news cards already use object-fit: cover.

Files:

  • layouts/news/list.html
  • layouts/news/single.html

🤖 Generated with Claude Code

The Recent News sidebar thumbnails set a fixed 90x70 box with no
object-fit, so wide banner images were distorted. Add object-fit: cover
so thumbnails crop to fill the box while preserving aspect ratio.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for nwborg ready!

Name Link
🔨 Latest commit 9a8a5fb
🔍 Latest deploy log https://app.netlify.com/projects/nwborg/deploys/6a443436c0f1020008a0fa65
😎 Deploy Preview https://deploy-preview-160--nwborg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bendichter

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants