Fix entry card contrast (lighter card, more visible border). Fix dblclick: force-select entry before opening edit.

This commit is contained in:
2026-05-12 14:20:46 +01:00
parent b51e9c3a73
commit d55be5f19e
2 changed files with 11 additions and 5 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
:root { :root {
--bg: #0e1015; --bg2: #161920; --text: #e2e6ea; --text2: #7f8a98; --bg: #0e1015; --bg2: #191d27; --text: #e2e6ea; --text2: #7f8a98;
--accent: #6b7280; --accent-rgb: 107,114,128; --accent: #6b7280; --accent-rgb: 107,114,128;
--danger: #ef4444; --success: #22c55e; --warning: #f59e0b; --danger: #ef4444; --success: #22c55e; --warning: #f59e0b;
--border: rgba(255,255,255,0.08); --card: #1a1d26; --border: rgba(255,255,255,0.12); --card: #212734;
--input: #11141a; --vault-bg: rgba(255,255,255,0.04); --input: #11141a; --vault-bg: rgba(255,255,255,0.06);
} }
.light { .light {
--bg: #eef0f4; --bg2: #e2e5eb; --text: #161b24; --text2: #5f6a7a; --bg: #eef0f4; --bg2: #e2e5eb; --text: #161b24; --text2: #5f6a7a;
--accent: #6b7280; --accent-rgb: 107,114,128; --accent: #6b7280; --accent-rgb: 107,114,128;
--card: #ffffff; --input: #ffffff; --card: #ffffff; --input: #ffffff;
--border: rgba(0,0,0,0.1); --vault-bg: rgba(255,255,255,0.7); --border: rgba(0,0,0,0.16); --vault-bg: rgba(255,255,255,0.7);
} }
* { margin:0; padding:0; box-sizing:border-box; } * { margin:0; padding:0; box-sizing:border-box; }
+7 -1
View File
@@ -999,7 +999,13 @@ function attachEvents() {
document.querySelectorAll('[draggable="true"], .detail-card').forEach(el => { document.querySelectorAll('[draggable="true"], .detail-card').forEach(el => {
el.addEventListener('dblclick', function(ev) { el.addEventListener('dblclick', function(ev) {
const id = this.dataset.id; const id = this.dataset.id;
if (id && !showTrash) { ev.stopPropagation(); openEdit(id); } if (id && !showTrash) {
ev.stopPropagation();
selectedIds.clear();
selectedIds.add(parseInt(id));
updateBatchBar();
openEdit(id);
}
}); });
}); });
if (showView) { if (showView) {