« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateArtistRollingWindowPage.js5
-rw-r--r--src/static/css/site.css2
-rw-r--r--src/strings-default.yaml4
3 files changed, 7 insertions, 4 deletions
diff --git a/src/content/dependencies/generateArtistRollingWindowPage.js b/src/content/dependencies/generateArtistRollingWindowPage.js
index 8c52dac0..33b1501e 100644
--- a/src/content/dependencies/generateArtistRollingWindowPage.js
+++ b/src/content/dependencies/generateArtistRollingWindowPage.js
@@ -145,8 +145,9 @@ export default {
             ? (thing.coverArtworks ?? thing.trackArtworks ?? [])
                 .find(artwork => artwork.artistContribs
                   .some(contrib => contrib.artist === artist))
-            : (thing.coverArtworks ?? thing.trackArtworks)
-                ?.[0] ?? null));
+            : (thing.coverArtworks ?? thing.trackArtworks)?.[0] ??
+              thing.album?.coverArtworks[0] ??
+              null));
 
     const allGroups =
       unique(query.thingGroups.flat());
diff --git a/src/static/css/site.css b/src/static/css/site.css
index de089777..3e144406 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -2431,6 +2431,8 @@ html[data-url-key="localized.artistRollingWindow"] #content input[type=number] {
 }
 
 html[data-url-key="localized.artistRollingWindow"] #timeframe-selection-control a {
+  display: inline-block;
+  padding: 5px;
   text-decoration: underline;
   text-decoration-style: dotted;
 }
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 16daf0fe..a56956f9 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -1444,8 +1444,8 @@ artistRollingWindowPage:
 
   timeframeSelectionControl:
     _: "{PREVIOUS} {TIMEFRAMES} {NEXT}"
-    previous: "(← Previous)"
-    next: "(Next →)"
+    previous: "← Previous"
+    next: "Next →"
 
   contributionKind:
     artwork: "Artwork"