mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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%" }
|
||||
|
||||
Reference in New Issue
Block a user