-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed conflicting styles for product image container in different listings at the same page #31473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tings at the same page
Hi @tangar76. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @tangar76, thank you for your contribution! |
Hi @tangar76. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento create issue |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tangar76, thanks for your contribution! Can you have a look at my comment below?
Also, we must cover all changes with automated tests, probably the most suitable here would be MFTF test.
Thanks!
@@ -10,8 +10,9 @@ | |||
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */ | |||
$width = (int)$block->getWidth(); | |||
$paddingBottom = $block->getRatio() * 100; | |||
$containerId = uniqid($block->getProductId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should create a function on Magento\Catalog\Block\Product\Image
to generate the containerId instead of adding it to template.
Hello @tangar76, Could you please look at #31473 (comment)? |
Hello @tangar76, please look at #31473 (comment). Otherwise, we can't proceed with your PR. |
@engcom-Charlie container id logic moved from template to block |
@magento run Functional Tests CE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Functional Tests B2B, Functional Tests EE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento give me test instance |
Hi @engcom-Charlie. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Charlie, here is your Magento Instance: https://d571d325782608ff6ac4467b071305aa.instances-prod.magento-community.engineering |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento give me 2.4-develop instance |
Hi @engcom-Charlie. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Charlie, here is your Magento Instance: https://9d9c4c4df647b8bf82f7ff4524b9ab1d.instances-prod.magento-community.engineering |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run Functional Tests CE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
Hi @tangar76, There are many failures in the build, it will be helpful if you have a look into them. Can you please check them. Thank you! |
Description (*)
This pull requests solves problem when there are two product listing blocks on the same page. Both blocks have at list one common product. And listings have different image sizes for product image.
Related Pull Requests
Can't find related pull requests.
Fixed Issues (if relevant)
Can't find related issue.
Manual testing scenarios (*)
With old code you can see that "Fusion Backpack" has smaller image than it should.
This pull request fixes it. "Fusion Backpack" will get same size as "Affirm Water Bottle".
Questions or comments
Contribution checklist (*)
Resolved issues:
Resolved issues: