fix: CardImageCup stretches image on Safari#3436
fix: CardImageCup stretches image on Safari#3436PKulkoRaccoonGang wants to merge 3 commits intorelease-22.xfrom
Conversation
|
Thanks for the pull request, @PKulkoRaccoonGang! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
✅ Deploy Preview for paragon-openedx-v22 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-22.x #3436 +/- ##
================================================
+ Coverage 93.40% 93.48% +0.07%
================================================
Files 252 252
Lines 4534 4557 +23
Branches 1064 1066 +2
================================================
+ Hits 4235 4260 +25
+ Misses 296 294 -2
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mxzybin
left a comment
There was a problem hiding this comment.
This does fix an image rendering issue in Safari, which can render images incorrectly if the width is not explicitly specified.
mxzybin
left a comment
There was a problem hiding this comment.
This does fix an image rendering issue in Safari, which can render images incorrectly if the width is not explicitly specified.
|
This seems to change the behavior when smaller images are used, I used https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/132.png to test but just changing the Left: This PR |
@brian-smith-tcril thank you! I will try to find a solution that will not create additional problems for us and will work in Safari |
002f986 to
df74a27
Compare
| object-fit: cover; | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; |
There was a problem hiding this comment.
I tested these cards in Safari. I think the most reliable way to solve the problem is to add absolute positioning to the image.
This fix resolves an image rendering issue when using max-width: inherit; width: auto; in Safari. Safari can ignore max-width: inherit and render the image to the page at its original size. Adding position: absolute takes the image out of the stream and creates a separate context for rendering the image.
|
Hi @PKulkoRaccoonGang! Is this pull request still in progress? |
I moved this PR to a draft, I want to check how it works now |
|
Hi @PKulkoRaccoonGang checking back in on this - is this still in progress? |
Friendly ping on this, @PKulkoRaccoonGang |
|
@mphilbrick211 thanks! I plan to return to this in the near future. |

Description
In Safari browser, the image inside the Card component is not stretched in height correctly.
Issue: #3187
Result in Safari
Screen.Recording.2025-02-19.at.09.07.24.mov
Merge Checklist
exampleapp?Post-merge Checklist