Skip to content

Fixed grid issue on listing product#19335

Closed
gelanivishal wants to merge 2 commits into
magento:2.3-developfrom
gelanivishal:issue-19312
Closed

Fixed grid issue on listing product#19335
gelanivishal wants to merge 2 commits into
magento:2.3-developfrom
gelanivishal:issue-19312

Conversation

@gelanivishal

@gelanivishal gelanivishal commented Nov 22, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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

@VladimirZaets

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@VladimirZaets Please give me screenshot.

@mfickers

mfickers commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

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

@magento-engcom-team

Copy link
Copy Markdown
Contributor

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

@magento-engcom-team

Copy link
Copy Markdown
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

mfickers commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

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

mfickers commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

erfanimani commented Dec 19, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

@magento-engcom-team give me test instance

@magento-engcom-team

Copy link
Copy Markdown
Contributor

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

@magento-engcom-team

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@mfickers

Copy link
Copy Markdown
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

mfickers commented Jan 22, 2019

Copy link
Copy Markdown
Contributor

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

sidolov commented Feb 5, 2019

Copy link
Copy Markdown
Contributor

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

ghost commented Feb 5, 2019

Copy link
Copy Markdown

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