Merge pull request 'Make "Recently played" rows match the Tracks list style' (#3) from fix/recent-list-style into main
Reviewed-on: #3
This commit is contained in:
commit
2f29c6084e
3 files changed
+23
-2
No files matched your search
@@ -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
@@ -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>
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user