Author Topic: BE Product List - the width of the "Media File" column.  (Read 501 times)

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 264
    • Bulgarian Computer Store
BE Product List - the width of the "Media File" column.
« 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. :)
No pain, no gain, no site!

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3751
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: BE Product List - the width of the "Media File" column.
« Reply #1 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.

Ventsi Genchev

  • Jr. Member
  • **
  • Posts: 264
    • Bulgarian Computer Store
Re: BE Product List - the width of the "Media File" column.
« Reply #2 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")
No pain, no gain, no site!