style: fix image cropping in platform engineering benefits section - #7972
style: fix image cropping in platform engineering benefits section#7972AnkitRewar11 wants to merge 1 commit into
Conversation
Signed-off-by: ankitrewar11 <rewarankit18@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe platform image styles change from ChangesPlatform image fitting
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This localized styling change adjusts image fitting so the full catalog image is visible; no actionable merge-blocking risk remains beyond normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🚀 Preview deployment: https://layer5.io/pr-preview/pr-7972/ |
dhruveshmishra
left a comment
There was a problem hiding this comment.
Minimal changes,LGTM
emphor11
left a comment
There was a problem hiding this comment.
The PR directly fixes the reported cropping issue, the chosen CSS behavior is appropriate, the before/after evidence shows the catalog image is now fully visible.
Description
This PR fixes #7951
Fixed the SRL-image-0.svg (catalog image) cropping issue in the "Leverage Ready-to-Use Building Blocks" section on the Platform Engineering page. The
.img-wrapper imgCSS hadobject-fit: coverset across all breakpoints, which was clipping the image inside its fixed-size container. Changed it toobject-fit: containso the full SVG is now visible and properly fitted within its container.Notes for Reviewers
Tested locally on
/solutions/platform-engineeringacross desktop, tablet (max-width: 767px), and mobile (max-width: 467px) breakpoints image now displays fully without cropping at all sizes.Signed commits
Before

After

Summary by CodeRabbit