diff --git a/css/style.css b/css/style.css index 33f6b0c..4a25a93 100644 --- a/css/style.css +++ b/css/style.css @@ -273,6 +273,8 @@ input:focus, select:focus { border-color:var(--accent); } transition: 0.2s; z-index: 100; } .fab:hover { transform: scale(1.1); filter: brightness(1.1); } +.fab-trash { left: 2rem; right: auto; font-size:1.4rem; } +.fab-trash.active { background:var(--danger); } /* Generic modal overlay (if you don’t already have it) */ .modal-overlay { diff --git a/index.html b/index.html index a6e00c5..fe96486 100644 --- a/index.html +++ b/index.html @@ -54,8 +54,9 @@ - + +

πŸ” Vault XAMPP

@@ -154,7 +155,6 @@
-
diff --git a/js/app.js b/js/app.js index e16b48e..847a5f4 100644 --- a/js/app.js +++ b/js/app.js @@ -291,7 +291,7 @@ function toggleTrash() { showTrash = !showTrash; const btn = document.getElementById('trashBtn'); const actions = document.getElementById('trashActions'); - if (btn) { btn.textContent = showTrash ? 'πŸ“‹ Active' : 'πŸ—‘οΈ Trash'; btn.classList.toggle('btn-danger', showTrash); } + if (btn) { btn.textContent = showTrash ? 'πŸ“‹' : 'πŸ—‘οΈ'; btn.classList.toggle('active', showTrash); btn.title = showTrash ? 'Active entries' : 'Trash'; } if (actions) actions.classList.toggle('hidden', !showTrash); loadEntries(); playSound('click'); @@ -1000,10 +1000,11 @@ function attachEvents() { el.addEventListener('dblclick', function(ev) { const id = this.dataset.id; if (id && !showTrash) { - ev.stopPropagation(); + ev.preventDefault(); selectedIds.clear(); selectedIds.add(parseInt(id)); updateBatchBar(); + render(); openEdit(id); } }); @@ -1056,7 +1057,7 @@ function openEdit(id) { document.getElementById('editSite').focus(); playSound('open'); } -function closeEdit() { document.getElementById('editModal').classList.remove('show'); playSound('close'); } +function closeEdit() { document.getElementById('editModal').classList.remove('show'); render(); playSound('close'); } function toggleEditPassword() { const f = document.getElementById('editPassword'); f.type = f.type === 'password' ? 'text' : 'password'; } async function saveEdit() { const id = document.getElementById('editId').value; diff --git a/vault-error.log b/vault-error.log new file mode 100644 index 0000000..ae71a73 --- /dev/null +++ b/vault-error.log @@ -0,0 +1 @@ +[2026-05-09 15:27:22] FATAL: database is locked diff --git a/vault.db b/vault.db index 8a00a2a..6eb1b9a 100644 Binary files a/vault.db and b/vault.db differ