Restore image display with absolute width

The `min-width` property is ignored by Firefox. And we don't need the
column to grow any bigger than the picture size anyway. An absolute
width is correct here.

The specification says:

> Applies to all elements but non-replaced inline elements, table rows,
> and row groups.

Firefox is totally right in ignoring it.
This commit is contained in:
Maikel Linke
2024-06-14 09:48:55 +10:00
parent 5d0e241f8c
commit 3c9f77dc2b

View File

@@ -15,7 +15,8 @@
%table.products{ 'data-column-preferences-target': "table" }
%colgroup
%col{ 'data-column-preferences-name': :image, width:"1%", style:"min-width: 56px" }= # (size + padding)
-# The `min-width` property works in Chrome but not Firefox.
%col{ 'data-column-preferences-name': :image, width:"56px" }= # (image size + padding)
%col{ 'data-column-preferences-name': :name, width:"15%", style:"min-width: 6em" }= # (grow to fill)
%col{ 'data-column-preferences-name': :sku, width:"10%", style:"min-width: 6em" }
%col{ 'data-column-preferences-name': :unit_scale, width:"8%" }