Fix table row indentation for hierarchy

Closes #57
This commit is contained in:
2025-01-16 21:19:01 +01:00
parent 5fff9adf4d
commit dada29d5e6
5 changed files with 25 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
<%- tag.tr id: row, class: "form", onkeydown: "processKey(event)",
data: {link: link, form: form_tag, hidden_row: hidden_row} do %>
<td class="<%= class_names({subquantity: @quantity.parent}) %>">
<td style="--depth:<%= @quantity.depth %>">
<%= form.text_field :name, required: true, autofocus: true, size: 20 %>
</td>
<td>