craftcms / craftcms/cms

[5.x] Icon thumbnails in card view

Open
#16,682 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Discussed in https://github.com/craftcms/cms/discussions/16670

Originally posted by ryanleichty February 10, 2025
I noticed a particular behavior with card thumbnails within a matrix field. If the first card you add has a thumbnail, the thumbnail will display. If the first card doesn't have a thumbnail (like this text entry type), any subsequent cards won't display a thumbnail whether they have one or not. I feel like this is a bug, but maybe it's the intended behavior?

CleanShot 2025-02-10 at 08 43 12@2x

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in a matrix field's card view: add a first card without a thumbnail, then add cards with thumbnails. Trace the card thumbnail rendering entry point and verify that later cards display their thumbnails regardless of whether the first card has one.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.