From 9cebd2e909793e12f7b9e5125d4fba671b5b660d Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Thu, 14 May 2026 04:14:31 +0000 Subject: Add per-photo delete checkbox to admin edit form Checking Delete and saving permanently removes the file and its thumbnail; a JS confirm dialog gates the submit. Deleted files are stripped from params before save_edits so they don't linger in album.json. Co-Authored-By: Claude Sonnet 4.6 --- public/css/style.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/css') diff --git a/public/css/style.css b/public/css/style.css index e6ebff3..41dfd0a 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -379,6 +379,11 @@ legend { padding: 0 8px; color: var(--text-dim); font-size: .85rem; } .files-table { font-size: .78rem; } } +/* ── Admin delete ──────────────────────────────────────────────────────── */ +.delete-cell { text-align: center; } +.delete-check { accent-color: #c0392b; width: 16px; height: 16px; cursor: pointer; } +tr.delete-marked td { background: rgba(192,57,43,.08); } + /* ── Admin update panel ────────────────────────────────────────────────── */ .admin-update { margin-top: 32px; } .admin-update h2 { font-size: 1rem; color: var(--text-dim); margin-bottom: 6px; } -- cgit v1.2.3