-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Commit #2652 breaks the Featured module's layout #2886
Comments
It is mostlikely caused by your right content not having enough "available" width to show all four products on the same line. Several easy ways to fix this in css, fastest:
Change to something like this ->
Keep reducing by 1% until it looks correct, |
The problem is the clearfix being inserted by javascript in common.js (https://github.com/opencart/opencart/blob/master/upload/catalog/view/javascript/common.js#L26)
It should instead be treated by CSS like so:
Note that elsewhere, like in related products, the clearfix is inserted via PHP, this should also get taken care of. Just my 2 cents... would do a PR to fix the whole thing, but my last experiences on here were bad (no comment on why it gets closed or not, etc). Additionally, if I recall during my hotfixing here, the |
I think the problem wih feature module is that have the class "product-layout" so the common.js insert the clear fix based on the number of columns (like veksen sais) but in pages where no grid control exist the common.js not adjust the product-layout grid. This is the function:
If this function is executed the featured module looks ok but i think the responsive adjuts based on javascript execution is very bad solution... |
just reopen a new issue if this is not fixed. |
The "product-layout" class added to the 4th line of the catalog/view/theme/default/template/module/featured.tpl in commit #2652 incorrectly breaks 4 products into 2 lines, when either a left or right column present in the layout. Example:
The Latest and the Bestseller modules are not affected.
The text was updated successfully, but these errors were encountered: