worktree-citti-arkiver-tur #11
@@ -78,7 +78,7 @@
|
|||||||
.item-qty { padding: 0.35rem 0.4rem; }
|
.item-qty { padding: 0.35rem 0.4rem; }
|
||||||
.item-qty input { width: 100%; border: 1px solid var(--border); border-radius: 5px; padding: 6px 5px; font-size: 11px; font-family: var(--mono); background: var(--bg); color: var(--muted); text-align: center; outline: none; transition: border-color 0.15s, background 0.15s; cursor: text; min-height: 32px; }
|
.item-qty input { width: 100%; border: 1px solid var(--border); border-radius: 5px; padding: 6px 5px; font-size: 11px; font-family: var(--mono); background: var(--bg); color: var(--muted); text-align: center; outline: none; transition: border-color 0.15s, background 0.15s; cursor: text; min-height: 32px; }
|
||||||
.item-qty input:focus { border-color: var(--accent); background: white; color: var(--text); }
|
.item-qty input:focus { border-color: var(--accent); background: white; color: var(--text); }
|
||||||
.item-qty input.modified { color: var(--accent); font-weight: 500; border-color: #f0b8ab; background: var(--accent-light); }
|
.item-qty input.modified { color: var(--green); font-weight: 500; border-color: #a8d5bc; background: var(--green-light); }
|
||||||
.item-est { padding: 0.7rem 0.5rem; font-size: 12px; font-family: var(--mono); color: var(--muted); text-align: right; }
|
.item-est { padding: 0.7rem 0.5rem; font-size: 12px; font-family: var(--mono); color: var(--muted); text-align: right; }
|
||||||
.item-actual { padding: 0.45rem 0.75rem 0.45rem 0.5rem; }
|
.item-actual { padding: 0.45rem 0.75rem 0.45rem 0.5rem; }
|
||||||
.item-actual input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 13px; font-family: var(--mono); background: var(--bg); color: var(--text); text-align: right; outline: none; transition: border-color 0.15s, background 0.15s; }
|
.item-actual input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 13px; font-family: var(--mono); background: var(--bg); color: var(--text); text-align: right; outline: none; transition: border-color 0.15s, background 0.15s; }
|
||||||
@@ -617,7 +617,7 @@ function updateQty(input) {
|
|||||||
input.classList.toggle('modified', input.value.trim() !== '' && input.value.trim() !== defaultQty);
|
input.classList.toggle('modified', input.value.trim() !== '' && input.value.trim() !== defaultQty);
|
||||||
const price = parseFloat(row.querySelector('.item-actual input').value);
|
const price = parseFloat(row.querySelector('.item-actual input').value);
|
||||||
const checked = row.querySelector('input[type=checkbox]').checked ? 1 : 0;
|
const checked = row.querySelector('input[type=checkbox]').checked ? 1 : 0;
|
||||||
computeMeals(); // meat portions / dinner days react to qty
|
recalcAll(); // meal stats + estimate (offer prices) react to qty
|
||||||
clearTimeout(debounceTimers[key + '_qty']);
|
clearTimeout(debounceTimers[key + '_qty']);
|
||||||
debounceTimers[key + '_qty'] = setTimeout(() => saveToServer(key, isNaN(price) ? null : price, checked), 600);
|
debounceTimers[key + '_qty'] = setTimeout(() => saveToServer(key, isNaN(price) ? null : price, checked), 600);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user