Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Card's image wont grow to cover its side of the card. #15673

Closed
Mathias-Syversen opened this issue Sep 5, 2024 · 2 comments
Closed

[5.x]: Card's image wont grow to cover its side of the card. #15673

Mathias-Syversen opened this issue Sep 5, 2024 · 2 comments
Assignees
Labels

Comments

@Mathias-Syversen
Copy link

What happened?

If the entry type's field layout is set up correctly, an entry type's cards will show an image on the left side.
This image has an max height, and wont cover the entire area. Is this by design?

Personally I think it looks much better when it actually grows to cover.

Screenshot 2024-09-05 at 16 55 55 Screenshot 2024-09-05 at 16 56 08

The CSS in question:

.card>.thumb img, .card>.thumb svg {
max-height: 128px;
-o-object-fit: cover;
object-fit: cover;
width: 100%;
}

Craft CMS version

5.4.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for pointing that out! We decided to take the thumb styling in a different direction for Craft 5.5, which resolves this issue: #15692.

@brandonkelly
Copy link
Member

Craft 5.5.0 is out now with that change 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants