Problem/Motivation

In the Featured Card component (Canvas supported), when using media position Start or End, the image does not always stretch to match the height of the content slot.

When the content area becomes taller (for example, long text or a quote), the media image remains shorter, which causes visual misalignment between the media and content areas. The expected behavior is for the image to fully cover the media area and match the content height.

Featured Card

Steps to reproduce

  1. Add a Featured Card component.
  2. Set media position to Start or End.
  3. Add long content in the content slot.
  4. Observe that the content column height increases.
  5. Notice the image does not stretch to match the content height.

Proposed resolution

  • Adjust the layout to ensure media and content columns share equal height (flex-based stretch).
  • Ensure the media container fills the available height.
  • Apply object-fit: cover to the image so it covers the media area correctly.
  • Keep behavior responsive and compatible with existing component settings (padding, border, equal height).

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alamgir.hossain.cse created an issue. See original summary.

alamgir.hossain.cse’s picture

Issue summary: View changes

rajab natshah made their first commit to this issue’s fork.

rajab natshah’s picture

Assigned: alamgir.hossain.cse » Unassigned
Status: Active » Needs review

rajab natshah’s picture

Status: Needs review » Needs work
alamgir.hossain.cse’s picture

Status: Needs work » Needs review

rajab natshah’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.