-
Notifications
You must be signed in to change notification settings - Fork 9.4k
All images height issue #25665
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
All images height issue #25665
Conversation
Hi @abrarpathan19. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@abrarpathan19, Update: We already have fix for this issue that was already tested: #25623 I'm closing your PR as duplicate. If you'll have any questions or comments - feed free to write comment and/or re-open this PR. |
Hi @abrarpathan19, thank you for your contribution! |
I have signed the CLI. In Magento 2.3.3 latest version there is an image height issue not even in the logo but entire store images. The reason behind this PR #25623 is already fixed that I agree but that changes are only for logo, I have fixed that changes for the entire Magento frontend. you can compare my code and his code. #25623 issue is fixed only for the Logo image. and my changes are for all images which are used in the frontend area in the store |
Hi @abrarpathan19, |
Hello @ihor-sviziev, Other images also work the same as the logo image is behaving now. and if we apply my changes we don't need to apply #25623 these changes. Thanks :) |
This PR reverts the fix that was done inside d0ad63c, which makes me thing that maybe |
lib/web/css/source/lib/_resets.less
Outdated
@@ -55,7 +55,7 @@ | |||
object, | |||
video, | |||
embed { | |||
max-height: 100%; | |||
height: auto; |
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.
As mentioned in the comment, this change was a part of d0ad63c and reverting it would most probably break something else.
My suggestion would be to split img
from this bunch and also remove the style that was added for logo if we can have it globally.
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.
Hello @krzksz,
Thanks for your suggestions. I have review your comment and agree with the same. As per your suggestion, I have added sperate property for img
, please review
Hello @abrarpathan19. Thank You for contribution. Please watch the gifs below: It is a Product Page being resized. Though I may be wrong, but as to me it looks like the behavior is pretty much the same for both cases. Could You please give us some steps to reproduce following which we would catch the evident difference between the behavior on develop branch and on the one with Your PR. Thank You. |
@magento give me 2.3-develop instance |
Hi @krzksz. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @krzksz, here is your Magento instance. |
Thanks for the update, Yes, I know the output will be the same but can you please review the CSS style are changed. Before it was fixed only for the logo (luma and Black only). but I have fixed it for entire store images (globally). I have already explained to Mateusz Krzeszowiak. |
Hey @abrarpathan19, can you give the example of an image in the shop that would be scaled incorrectly without your change? If not, then it means is is not really needed, right? |
Hello @krzksz, Regarding example please review the provided demo from the engcom-Bravo, It is behaving the same in the Current PR branch and 2.3-develop. In Branch 2.3-develop following issue already merges and it was fixed only for the logo but I have fixed it for the whole store that is why we are removing these changes. whether you upload logos and any images from the admin. Thanks |
@abrarpathan19, Probably I do not entirely understand You, but please take a look at the gifs once more. I intentionally put for a comparison two kinds of image: Logo image and Product Page image. They both behave correctly on the latest develop. Could You please give us an example where image would be resized better with Your PR than it is resized on the current develop version. Thank You. |
The error was first introduced in MAGETWO-59978 d0ad63c#diff-9cc331ae9c8d2d3be0f5607cfd3c570c. It causes ALL images (well possibly all but product images. Try putting an image in the footer instead of using product image, or create a cms page with an image in it. These will all resize incorrectly in 2.3-develop) to be resized incorrectly. The fix in #25623 only fixed it for the logo images, as that was what the bug reported, e.g Problems resizing logo images. This PR reverts the changes made in #25623 and re-introduces a new fix for MAGETWO-59978 that only affects video objects, and leaves the styles for img's working correctly. This PR is the correct resolution IMHO. |
@magento give me 2.3-develop instance |
Hi @krzksz. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @krzksz, here is your Magento instance. |
For me the result seems correct both for images in CMS pages and static blocks with |
Hello @krzksz, Do you need any update from my end? Abrar |
Hi @abrarpathan19! Yes, please provide an information which image in which browser is not scaling for you properly without your fix. As you can see above we are struggling to find such image. |
@magento give me 2.3-develop instance |
Hi @abrarpathan19. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @abrarpathan19, here is your Magento instance. |
Hello Please review http://prntscr.com/q4w15r |
@abrarpathan19 Can you give me any other example then the logo which is fixed on |
@abrarpathan19, I am closing this PR now due to inactivity. |
Hi @abrarpathan19, thank you for your contribution! |
Description (*)
Fixed Issues (if relevant)
Manual testing scenarios (*)
In Magento 2.3.3 latest version there is an image height issue, It was proper working in the previous version so I have done changes as per the previous version.
Questions or comments
Contribution checklist (*)