BE Product List - the width of the "Media File" column.

Started by Ventsi Genchev, October 21, 2017, 20:28:59 PM

Previous topic - Next topic

Ventsi Genchev

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. :)
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English

Studio 42

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.

Ventsi Genchev

#2
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")
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English