Update widths

For some reason, minimum widths work now (I swear they didn't before).

Hmm i would really like to shorten that stimulus controller name.
This commit is contained in:
David Cook
2024-06-12 17:04:37 +10:00
parent d5456a85b7
commit 9ae4d347aa

View File

@@ -15,18 +15,18 @@
%table.products{ 'data-column-preferences-target': "table" }
%colgroup
%col{ width:"56", 'data-column-preferences-name': :image }= # (size + padding)
%col{ 'data-column-preferences-name': :name }= # (grow to fill)
%col{ width:"5%", 'data-column-preferences-name': :sku }
%col{ width:"8%", 'data-column-preferences-name': :unit_scale }
%col{ width:"8%", 'data-column-preferences-name': :unit }
%col{ width:"5%", 'data-column-preferences-name': :price}
%col{ width:"10%", 'data-column-preferences-name': :on_hand}
%col{ width:"15%", 'data-column-preferences-name': :producer}
%col{ width:"8%", 'data-column-preferences-name': :category}
%col{ width:"8%", 'data-column-preferences-name': :tax_category}
%col{ width:"8%", 'data-column-preferences-name': :inherits_properties}
%col{ width:"8%"}= # Actions
%col{ 'data-column-preferences-name': :image, width:"1%", style:"min-width: 56px" }= # (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%" }
%col{ 'data-column-preferences-name': :unit, width:"8%" }
%col{ 'data-column-preferences-name': :price, width:"5%", style:"min-width: 5em" }
%col{ 'data-column-preferences-name': :on_hand, width:"10%"}
%col{ 'data-column-preferences-name': :producer, width:"15%"}
%col{ 'data-column-preferences-name': :category, width:"8%" }
%col{ 'data-column-preferences-name': :tax_category, width:"8%" }
%col{ 'data-column-preferences-name': :inherits_properties, width:"8%" }
%col{ width:"1%", style:"min-width: 5em"}= # Actions
%thead
%tr
%td.form-actions-wrapper{ colspan: 12 }