fix(webapp): confirmation dialog + undo button visibility
- Add _showDestructiveConfirm() helper: shows modal with 5-second auto-confirm countdown bar; user can confirm early or cancel - throwAll(): now shows confirmation before discarding all stock - submitUseAll(): same confirmation before marking all as used - undoTransactionEntry(): replace native confirm() with modal - Rename core logic to _doSubmitUseAll() / _doUndoTransaction() - btn-log-undo: more visible (red tint + larger font) so user can easily undo accidental operations from the history log - Bump app.js version to v=20260505a
This commit is contained in:
@@ -4248,19 +4248,19 @@ body.cooking-mode-active .app-header {
|
||||
|
||||
.btn-log-undo {
|
||||
flex-shrink: 0;
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-muted);
|
||||
background: rgba(248, 113, 113, 0.12);
|
||||
border: 1px solid rgba(248, 113, 113, 0.4);
|
||||
color: #f87171;
|
||||
border-radius: 6px;
|
||||
padding: 3px 8px;
|
||||
font-size: 0.85rem;
|
||||
padding: 5px 10px;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
line-height: 1.4;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.btn-log-undo:hover {
|
||||
background: rgba(255,255,255,0.08);
|
||||
color: var(--text);
|
||||
background: rgba(248, 113, 113, 0.25);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user