Fix entry card contrast (lighter card, more visible border). Fix dblclick: force-select entry before opening edit.
This commit is contained in:
+4
-4
@@ -1,15 +1,15 @@
|
||||
:root {
|
||||
--bg: #0e1015; --bg2: #161920; --text: #e2e6ea; --text2: #7f8a98;
|
||||
--bg: #0e1015; --bg2: #191d27; --text: #e2e6ea; --text2: #7f8a98;
|
||||
--accent: #6b7280; --accent-rgb: 107,114,128;
|
||||
--danger: #ef4444; --success: #22c55e; --warning: #f59e0b;
|
||||
--border: rgba(255,255,255,0.08); --card: #1a1d26;
|
||||
--input: #11141a; --vault-bg: rgba(255,255,255,0.04);
|
||||
--border: rgba(255,255,255,0.12); --card: #212734;
|
||||
--input: #11141a; --vault-bg: rgba(255,255,255,0.06);
|
||||
}
|
||||
.light {
|
||||
--bg: #eef0f4; --bg2: #e2e5eb; --text: #161b24; --text2: #5f6a7a;
|
||||
--accent: #6b7280; --accent-rgb: 107,114,128;
|
||||
--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; }
|
||||
|
||||
@@ -999,7 +999,13 @@ function attachEvents() {
|
||||
document.querySelectorAll('[draggable="true"], .detail-card').forEach(el => {
|
||||
el.addEventListener('dblclick', function(ev) {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user