Fix: Reset-SVG per appendChild, Satz-Zeile als kompaktes 5-Spalten-Grid
Image bauen und in die Registry schieben / build (push) Successful in 6s
Image bauen und in die Registry schieben / build (push) Successful in 6s
- Reset-Icon korrekt eingefuegt (war '[object HTMLSpanElement]' weil das SVG-Element als Text-Argument an el() ging) - Satz-Zeile: display:grid mit auto 1fr 1fr auto auto, kg/reps-Inputs flexibel (1fr, min-width 0), Buttons als kleine Icons (26px) - passt komplett auf ein Handy-Display ohne horizontales Scrollen - Label zurueck auf 'Set n' (klarer als 'S1') - Tests: 169 Checks gruen (39+18+52+32+28)
This commit is contained in:
1 parent
6d57200032
commit
f93d88abd3
3 files changed
+9
-10
No files matched your search
@@ -910,7 +910,7 @@ function buildSetRow(a, model, ex, entry, i) {
|
||||
chk.type = "button";
|
||||
chk.setAttribute("aria-pressed", entry.done ? "true" : "false");
|
||||
chk.setAttribute("aria-label", t("set_done_aria", { n: i + 1 }));
|
||||
chk.appendChild(el("span", "set-check-label", "S"));
|
||||
chk.appendChild(el("span", "set-check-label", "Set"));
|
||||
chk.appendChild(el("span", "set-check-num", String(i + 1)));
|
||||
chk.appendChild(el("span", "set-check-box", entry.done ? "✓" : ""));
|
||||
chk.addEventListener("click", () => toggleSetDone(a, model, ex.key, i, chk));
|
||||
@@ -932,9 +932,10 @@ function buildSetRow(a, model, ex, entry, i) {
|
||||
entry.wInput = wBox.querySelector("input");
|
||||
entry.rInput = rBox.querySelector("input");
|
||||
|
||||
const reset = el("button", "icon-btn", resetSvg());
|
||||
const reset = el("button", "icon-btn", "");
|
||||
reset.type = "button";
|
||||
reset.setAttribute("aria-label", t("reset_set_title"));
|
||||
reset.appendChild(resetSvg());
|
||||
reset.addEventListener("click", () => resetSet(a, model, ex.key, i, entry));
|
||||
row.appendChild(reset);
|
||||
|
||||
|
||||
Reference in new issue
Block a user