Refine styling and scripts

This commit is contained in:
cryptogopher 2024-04-05 02:20:12 +02:00
parent 175ccf6eae
commit ceea65cfa8
2 changed files with 2 additions and 1 deletions

View File

@ -372,6 +372,7 @@ table.items td.subunit:has(input) {
padding-inline-start: calc(1.4em - 1px); padding-inline-start: calc(1.4em - 1px);
} }
table.items td.actions { table.items td.actions {
align-items: center;
display: flex; display: flex;
gap: 0.4em; gap: 0.4em;
justify-content: end; justify-content: end;

View File

@ -33,7 +33,7 @@
<%= javascript_tag do %> <%= javascript_tag do %>
function processKey(event) { function processKey(event) {
if (event.key == "Escape") { if (event.key == "Escape") {
event.target.closest("tr").querySelector("a[name=cancel]").click(); event.currentTarget.querySelector("a[name=cancel]").click();
} }
} }