Jump to content

Backoffice - Product page columns in Chrome [SOLVED]


ale.pixel

Recommended Posts

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?

chrome.jpg

firefox.jpg

Edited by alex.kidd
Problem solved (see edit history)
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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

  • ale.pixel changed the title to Backoffice - Product page columns in Chrome [SOLVED]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...