@Bartek20
Posted
I think you should add min-width to .card to prevent text from overflowing. Also, you forgot to round the image. I was unable to replicate your problem, so no help from me... My personal opinion about img in that case, object-fit and height are unnecessary. Think about what would happen if that img showed a person and on a smaller screen size, you would only see the torso of that person (if the person is in the center of img) without object-fit, img gets scaled, not cut.
Marked as helpful
Many thanks :)
Have added a min-width, and rounded the img :)
I agree with what you mean re: object-fit and height. It's just that in this case, the Figma file seemed to fix the height to 200px in both desktop and mobile, and it seemed to crop the content accordingly (the mobile version of the image is missing the left and right details that are on the desktop version), so object-fit: cover seemed the closest match I could find to that :) @Bartek20