Skip to content

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

@ZapaNOR

Description

@ZapaNOR

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions