1
0

Changed action column width

This commit is contained in:
cryptogopher 2019-11-02 23:59:19 +01:00
parent 020c4e30ea
commit fd24bced60
4 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<% end %> <% end %>
</fieldset> </fieldset>
<table class="list" style="border: none; width: 100%"> <table class="list" style="border:none; width:100%">
<tr> <tr>
<% total_width = 3 + @primary_quantities.length %> <% total_width = 3 + @primary_quantities.length %>
<td style="visibility: hidden; border: none; width:<%= 3 * 100/total_width%>%"></td> <td style="visibility: hidden; border: none; width:<%= 3 * 100/total_width%>%"></td>

View File

@ -29,7 +29,7 @@
<tr> <tr>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
<th><%= l(:field_description) %></th> <th><%= l(:field_description) %></th>
<th style="width:15%"><%= l(:field_action) %></th> <th style="width:10%"><%= l(:field_action) %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@ -29,7 +29,7 @@
<tr> <tr>
<th><%= l(:field_shortname) %></th> <th><%= l(:field_shortname) %></th>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
<th style="width:15%"><%= l(:field_action) %></th> <th style="width:10%"><%= l(:field_action) %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View File

@ -4,6 +4,7 @@ table.nutrients.list td.quantity {text-align: left; border-bottom: none;}
table.nutrients.list td.space {border-top: none; border-bottom: none;} table.nutrients.list td.space {border-top: none; border-bottom: none;}
table.nutrients.list td.value {border-top: none;} table.nutrients.list td.value {border-top: none;}
table.list tr.ingredient.hidden {opacity: 0.4} table.list tr.ingredient.hidden {opacity: 0.4}
table.list td.action,
table.list td.name {white-space: nowrap;} table.list td.name {white-space: nowrap;}
table.list td.action, table.list td.action,
table.list td.value {text-align: right;} table.list td.value {text-align: right;}