LinkedIn feed widget image being cut off if the size is not in the exact 3:2 aspect ratio

  • Issue description:
    When using the LinkedIn feed widget, the image gets cut off if it’s not in the exact 3:2 aspect ratio. Can the widget be modified to display the image without cropping, or could it automatically adjust to fit various aspect ratios?

  • Link to the page with the widget in question:
    Demo site Online Community

2 Likes

Hi there, @Manish_Chaudhary and welcome to the Community :wave:

I’ve checked your website and see that you’ve used the CSS code to fix it:

[class*="Text__Container-sc"]:hover [class*="Text__Control-sc"] {
text-decoration: underline;
}

[class*='MediaImage__Container-sc'] img {
    display: block;
    width: 100% ;
    height: 100% ;
    object-fit: contain ;
}


Please let me know if you like the current result or if any further assistance is needed :slightly_smiling_face:

1 Like

Thanks Max. Yes, I was able to resolve this using css. Appreciate your help.

2 Likes