Trash FAB: always shows 🗑️; active mode has transparent background, no shadow

This commit is contained in:
2026-05-12 15:33:12 +01:00
parent d1a26fc0d6
commit 59d407558b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ input:focus, select:focus { border-color:var(--accent); }
} }
.fab:hover { transform: scale(1.1); filter: brightness(1.1); } .fab:hover { transform: scale(1.1); filter: brightness(1.1); }
.fab-trash { left: 2rem; right: auto; font-size:1.4rem; } .fab-trash { left: 2rem; right: auto; font-size:1.4rem; }
.fab-trash.active { background:var(--danger); } .fab-trash.active { background:transparent; box-shadow:none; }
/* Generic modal overlay (if you dont already have it) */ /* Generic modal overlay (if you dont already have it) */
.modal-overlay { .modal-overlay {
+1 -1
View File
@@ -291,7 +291,7 @@ function toggleTrash() {
showTrash = !showTrash; showTrash = !showTrash;
const btn = document.getElementById('trashBtn'); const btn = document.getElementById('trashBtn');
const actions = document.getElementById('trashActions'); const actions = document.getElementById('trashActions');
if (btn) { btn.textContent = showTrash ? '📋' : '🗑️'; btn.classList.toggle('active', showTrash); btn.title = showTrash ? 'Active entries' : 'Trash'; } if (btn) { btn.classList.toggle('active', showTrash); btn.title = showTrash ? 'Back to entries' : 'Trash'; }
if (actions) actions.classList.toggle('hidden', !showTrash); if (actions) actions.classList.toggle('hidden', !showTrash);
loadEntries(); loadEntries();
playSound('click'); playSound('click');