Make "Recently played" rows match the Tracks list style #3

Merged
matt merged 1 commits from fix/recent-list-style into main 2026-10-06 13:45:58 +01:00
3 changed files with 23 additions and 2 deletions

No files matched your search

+16
View File
@@ -625,6 +625,22 @@ input {
color: var(--ink-soft);
}
/* Stack the track above a muted artist line and make the cell a link, like .ranking rows */
.log-stacked .by {
display: block;
}
.log-stacked li a {
display: block;
color: inherit;
text-decoration: none;
}
.log-stacked li a:hover,
.log-stacked li a:focus-visible {
text-decoration: underline;
}
.log-day {
margin: 2rem 0 0.25rem;
font-size: var(--step-0);
+1 -1
View File
@@ -40,7 +40,7 @@
<h2 id="recent-title">Recently played</h2>
<a href="history.html">Full history</a>
</div>
<ol class="log" id="recent"></ol>
<ol class="log log-stacked" id="recent"></ol>
</section>
</main>
</body>
+6 -1
View File
@@ -262,7 +262,12 @@ async function loadRecent() {
"li",
{},
h("time", { datetime: s.played_at, title: new Date(s.played_at).toLocaleString() }, timeAgo(s.played_at)),
h("span", {}, h("span", { class: "track" }, s.track), h("span", { class: "by" }, ` by ${s.artist}`)),
h(
"a",
{ href: songHref(s.artist, s.track) },
h("span", { class: "track" }, s.track),
h("span", { class: "by" }, s.artist),
),
),
),
);