2 Commits
Author SHA1 Message Date
matt 7b169ea807 Merge pull request 'Make "Recently played" rows match the Tracks list style' (#3) from fix/recent-list-style into main
CI / lint (push) Successful in 14s
CI / validate-monitoring (push) Successful in 10s
CI / federation-interop (push) Successful in 1m13s
CI / assets (push) Successful in 9s
CI / images (push) Successful in 37s
CI / trigger-deploy (push) Successful in 2s
CI / python-package (push) Successful in 18s
CI / test (push) Successful in 4m26s
CI / notify (push) Successful in 6s
Reviewed-on: #3
2026-10-06 13:45:57 +01:00
mattandClaude Sonnet 5 457e051828 Make "Recently played" rows match the Tracks list style
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 12s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 3m18s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 6s
CI / validate-monitoring (pull_request) Successful in 9s
CI / lint (pull_request) Successful in 14s
CI / federation-interop (pull_request) Successful in 1m14s
CI / test (pull_request) Successful in 4m38s
CI / images (pull_request) Skipped
CI / assets (pull_request) Skipped
CI / python-package (pull_request) Skipped
CI / trigger-deploy (pull_request) Skipped
CI / notify (pull_request) Successful in 7s
Stack the track above a muted artist line and link each row to its
song page, consistent with how the "Most played > Tracks" list
already looks and behaves. Scoped with a new .log-stacked modifier
so history.html and the song page's own history list (which share
the base .log classes) are unaffected.

Verified manually in-browser: rows render stacked and link to the
right song page, and history.html's layout is unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-06 13:30:30 +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); 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 { .log-day {
margin: 2rem 0 0.25rem; margin: 2rem 0 0.25rem;
font-size: var(--step-0); font-size: var(--step-0);
+1 -1
View File
@@ -40,7 +40,7 @@
<h2 id="recent-title">Recently played</h2> <h2 id="recent-title">Recently played</h2>
<a href="history.html">Full history</a> <a href="history.html">Full history</a>
</div> </div>
<ol class="log" id="recent"></ol> <ol class="log log-stacked" id="recent"></ol>
</section> </section>
</main> </main>
</body> </body>
+6 -1
View File
@@ -262,7 +262,12 @@ async function loadRecent() {
"li", "li",
{}, {},
h("time", { datetime: s.played_at, title: new Date(s.played_at).toLocaleString() }, timeAgo(s.played_at)), 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),
),
), ),
), ),
); );