This commit is contained in:
schmeeve
2026-09-25 12:53:19 -07:00
parent c17f4ed33f
commit 1fc3cc0e74
2 changed files with 6 additions and 6 deletions

View File

@@ -303,16 +303,16 @@ body {
.note-snippet h1, .note-snippet h2, .note-snippet h3 { margin: 0.3em 0; font-size: 1em; color: var(--secondary); } .note-snippet h1, .note-snippet h2, .note-snippet h3 { margin: 0.3em 0; font-size: 1em; color: var(--secondary); }
.note-snippet blockquote { border-left: 3px solid var(--secondary); margin: 0.3em 0; padding-left: 10px; color: var(--muted); } .note-snippet blockquote { border-left: 3px solid var(--secondary); margin: 0.3em 0; padding-left: 10px; color: var(--muted); }
.note-item { display: flex; align-items: flex-start; gap: 12px; } .note-item { display: flex; flex-direction: column; gap: 10px; }
.note-body { flex: 1; min-width: 0; } .note-body { flex: 1; min-width: 0; }
.note-thumb { .note-banner {
width: 56px; width: 100%;
height: 56px; height: 140px;
object-fit: cover; object-fit: cover;
object-position: top;
border-radius: 6px; border-radius: 6px;
border: 1px solid var(--border); border: 1px solid var(--border);
background: var(--surface); background: var(--surface);
flex-shrink: 0;
} }
.attach-count { color: var(--muted); margin-left: 8px; } .attach-count { color: var(--muted); margin-left: 8px; }

View File

@@ -429,7 +429,7 @@ function noteList(notes) {
n.snippet ? el("div", { class: "note-snippet", html: marked.parse(n.snippet) }) : null, n.snippet ? el("div", { class: "note-snippet", html: marked.parse(n.snippet) }) : null,
]); ]);
ul.appendChild(el("li", { class: isCommon ? "note-item note-common" : "note-item", onclick: () => openNote(n.id) }, [ ul.appendChild(el("li", { class: isCommon ? "note-item note-common" : "note-item", onclick: () => openNote(n.id) }, [
n.image ? el("img", { class: "note-thumb", src: n.image, alt: "", loading: "lazy" }) : null, n.image ? el("img", { class: "note-banner", src: n.image, alt: "", loading: "lazy" }) : null,
bodyEl, bodyEl,
])); ]));
} }