VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Ventsi Genchev on October 21, 2017, 20:28:59 PM

Title: BE Product List - the width of the "Media File" column.
Post by: Ventsi Genchev on October 21, 2017, 20:28:59 PM
VM: 3.2.4
BE Product List (administrator/index.php?option=com_virtuemart&view=product)

10 products - the width of the "Media File" column is $imgWidth = VmConfig::get('img_width') (line:66 file:administrator/components/com_virtuemart/views/product/tmpl/default.php). In my case this is 480px.

But the photo of the product is 50px because in:
administrator/components/com_virtuemart/assets/css/admin.styles.css
is written:
.vm_mini_image{max-height:50px;max-width:80px;vertical-align:middle}

This gives a very wide column with very small pictures.
Personally, I do not see the sense of having huge photos on this list (if the CSS restriction is removed).
Yes, I know that if the "Max items listed displaying media" value is reduced (For example 2), pictures will not be visible. :)
Title: Re: BE Product List - the width of the "Media File" column.
Post by: Studio 42 on October 21, 2017, 22:42:50 PM
I have in table min-width:300px; and not 480px and img max-with 80px.
But i don't see the logic to set 300px and 80px for this column too, if you remove min-width:300px; it render nice.
Title: Re: BE Product List - the width of the "Media File" column.
Post by: Ventsi Genchev on October 21, 2017, 23:05:37 PM
Yes, you have a min-width:300px, because in configuration you set a "Thumbnail Image Width" of 300px. My thumbnails are 480x480px.

I think it is better not to take the size according to "Thumbnail Image Width".
My idea is Max to fix this little bug in the next version. I'm just reporting an error.  :)

(min-width is hadcoded in administrator/components/com_virtuemart/views/product/tmpl/default.php, according to "Thumbnail Image Width")