ale.pixel Posted July 30, 2021 Share Posted July 30, 2021 (edited) Hello everyone! I have noticed this weird thing while browsing the Catalogue -> Products page in the PrestaShop backoffice. As you can see from the screenshot below, in Chrome the "Id" column is unnecessarily wide according to its content and it's stealing space to the others (especially the "Name" one in smaller screens). This doesn't happen in Firefox, where everything is better paginated. Anyone knows how to fix this? Edited August 11, 2021 by alex.kidd Problem solved (see edit history) Link to comment Share on other sites More sharing options...
Mikeey Posted July 31, 2021 Share Posted July 31, 2021 Never reflected about that earlier, Firefox and Safari is showing the same. It's the browser that interprets the css (width settings) in different ways. You can try to change in: /src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Lists/products_table.html.twig Row 40-41 is the 2 first columns.. Maybe set a max-width in these 2 columns instead.. Don't forget to back it up before and also clear the cache after changes has been made in folder var/cache/prod | /dev 1 Link to comment Share on other sites More sharing options...
raicap Posted July 31, 2021 Share Posted July 31, 2021 Hi I have the same problem and it occurs both on chrome and on microsoft edge. I changed the data in width but nothing is changed. have you tried? Link to comment Share on other sites More sharing options...
Mikeey Posted July 31, 2021 Share Posted July 31, 2021 Yes I have tried with success. Try to set width:50px!important; and see if you get any result. also, don’t forget to empty the cache folder.. Link to comment Share on other sites More sharing options...
ale.pixel Posted August 7, 2021 Author Share Posted August 7, 2021 Hello, sorry for the late reply! I have tried as you suggested, by changing the value of the rows 40 and 41 with this values: <th scope="col" style="max-width: 2rem;"></th> <th scope="col" style="max-width: 5rem;"> It works like a charm now! Many thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now