fsek / fsek/WWW-Web

Don't crop news images

Open
#261 1 comment 0 reactions 1 assignee Claimed by @tramvaj99 View on GitHub
bug good second issue
Dominant language
TypeScript
Stars
3
Forks
4
Avg merge
3d 15h
Merged PRs (30d)
12

Description

Right now all news images have the same height and width, and when it does not match the container (which it rarely does), it gets cropped.
The following needs to be fixed:
- set `objectFit` on the image component to `"contain"` (see [reference](https://nextjs.org/docs/app/api-reference/components/image#reference))
- Match the image width to its container. Probably easiest using [fill](https://nextjs.org/docs/app/api-reference/components/image#fill) and a div

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.