Image Sizing Error In Components

Hi there,
if I create a div and set it to 300 px height and then place an image in it that is set to 100% width and object fit to cover, I get a full VH div with and image that is 300 px high and spans the whole with.

When I put this combination into a component, the image does what it wants and is no longer contained by the div. Other settings with the image in the component also give different results from the default editor.

Is this a bug or am I missing something here? :sweat_smile:

Could it be that the image default for height is not set to inherit?

Cheers

  • Browser: Firefox
  • WordPress version: 6.3.1
  • Cwicly Plugin version: 1.3.0.2