VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ncde on July 15, 2015, 16:41:06 PM

Title: Backend Product Table Width
Post by: ncde on July 15, 2015, 16:41:06 PM
Hi,

The table with all the different products listed in the backend seems much to wide and breaks the whole layout.
This effect is forced by too much width of the column "Media File". Somehow (since a change in Revision 8551) the width for images set within the settings is set as min-width for this column. This results for me in at least a min-width of 700px (my default width set for any images), breaking the layout.

I think that setting the min-width depending on the width of my thumbnails / images is not useful as there is never any preview shown in the column.
Perhaps this could be changed/removed or at least limited to any useful values.

Please see the changes: http://dev.virtuemart.net/projects/virtuemart/repository/revisions/8551/diff/trunk/virtuemart/administrator/components/com_virtuemart/views/product/tmpl/default.php (http://dev.virtuemart.net/projects/virtuemart/repository/revisions/8551/diff/trunk/virtuemart/administrator/components/com_virtuemart/views/product/tmpl/default.php)

Best regards
Title: Re: Backend Product Table Width
Post by: Milbo on July 16, 2015, 14:46:42 PM
The min width is set to the size of the media. You may use another treshold in the config, then you dont have media in the list
Title: Re: Backend Product Table Width
Post by: ncde on July 16, 2015, 14:56:28 PM
Thanks for your reply.

If I need a width of e. g. 700px for dynamically resized thumbnails in the frontend I cannot simply change that value to gain proper table width within the backend.
Why should there be any min-width connected to the image size if there is only a simple icon and the number of media files provided in this column -- and never a preview width this width?

I just want to avoid any non-persistent changes to my installation. If you need larger thumbnail size due to retina support etc. this should be changed.
Title: Re: Backend Product Table Width
Post by: Milbo on July 16, 2015, 14:58:39 PM
Now I get it .... it does not take the treshold in consideration. Just set your pagination to a lower value and you will see images.
Title: Re: Backend Product Table Width
Post by: Milbo on July 16, 2015, 15:06:40 PM
added
Title: Re: Backend Product Table Width
Post by: ncde on July 16, 2015, 15:20:01 PM
I have attached a screenshot with the corrected threshold (displaying thumbnails) to demonstrate the initial problem.
Title: Re: Backend Product Table Width
Post by: Milbo on July 16, 2015, 19:34:12 PM
Quote from: Milbo on July 16, 2015, 15:06:40 PM
added