Skip to content

Fixed grid issue on listing product #19335

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

Closed
wants to merge 2 commits into from

Conversation

gelanivishal
Copy link
Contributor

@gelanivishal gelanivishal commented Nov 22, 2018

Description (*)

Fixed grid column issue on v2.3

Fixed Issues (if relevant)

  1. Category grid not rendered correctly #19312: Category grid not rendered correctly

Manual testing scenarios (*)

  1. Create a category
  2. Create > 5 products and assign them to this category
  3. Open Category in Frontend

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @gelanivishal. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Nov 22, 2018
@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-3529 has been created to process this Pull Request

@VladimirZaets
Copy link
Contributor

Hi @gelanivishal. Thanks for the collaboration. After manual testing we found next problems:

Problem: Incorrect product grid view on category page.
Manual testing scenario:

Create a category
Create > 5 products and assign them to this category
Open Category in Frontend
Incorrect product grid view on category page.

@gelanivishal
Copy link
Contributor Author

@VladimirZaets Please give me screenshot.

@mfickers
Copy link
Contributor

mfickers commented Dec 7, 2018

@magento-engcom-team give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @mfickers. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @mfickers, here is your Magento instance.
Admin access: https://i-19335-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@mfickers
Copy link
Contributor

mfickers commented Dec 7, 2018

This is how the Wishlist grid looks without the float: left;
bildschirmfoto 2018-12-07 um 11 57 26
There are 3 items per row, when it should be 4 items.
And this is how it looks with float:left;
bildschirmfoto 2018-12-07 um 11 58 02
Now there are 4 items per row, which is correct, but the button bar is no on the bottom of the grid, but instead is below the first row.

@mfickers
Copy link
Contributor

mfickers commented Dec 7, 2018

I found another fix for the issue, that works for the Wishlist, too.
Setting the font-size of the list to zero will ensure that all list items will fit into a single row.

.product-items {
    font-size: 0;

    .product-item {
        font-size: initial;
    }
}

@gelanivishal
Copy link
Contributor Author

@VladimirZaets It's working for me. Please give me a screenshot or Check my solution in the
2018-12-13_15-03-11
attached screenshot

@erfanimani
Copy link
Contributor

erfanimani commented Dec 19, 2018

The option I like best is to simply comment out the whitespace <!-- -->. The CSS font changes can cause side-effects or specificity issues.

So it'd look something like this:

            </li><!--
        --><?php endforeach; ?>

There has to be a comment explaining the comment though, in case someone in the future tries to "simplify" the template and cause a regression bug (like so #9019).

@sivaschenko sivaschenko self-assigned this Jan 21, 2019
@sivaschenko
Copy link
Member

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, here is your new Magento instance.
Admin access: https://pr-19335.instances.magento-community.engineering/admin
Login: admin Password: 123123q

@sivaschenko
Copy link
Member

Hi @gelanivishal the issue can be viewed at the test instance that I launched: https://pr-19335.instances.magento-community.engineering/products.html

Here is the screenshot:
image

@gelanivishal
Copy link
Contributor Author

@sivaschenko I can see that it's working as excepted.

@mfickers
Copy link
Contributor

And this is how the wishlist looks with the changes:

It's easy too see that this breaks the layout, as the "Update", "Share" and "Add All to Cart" buttons aren't below the grid but right inside it.

I'd prefer a solution that keeps catalog grid and wishlist grid uniform and works for both.

bildschirmfoto 2019-01-22 um 08 14 17

@mfickers
Copy link
Contributor

mfickers commented Jan 22, 2019

It gets even worse with more than four items:

bildschirmfoto 2019-01-22 um 08 18 23

@okorshenko okorshenko removed this from the Release: 2.3.1 milestone Jan 28, 2019
@sidolov
Copy link
Contributor

sidolov commented Feb 5, 2019

Hi @gelanivishal , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Feb 5, 2019
@ghost
Copy link

ghost commented Feb 5, 2019

Hi @gelanivishal, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants