@@ -150,6 +150,8 @@ export class UIRenderer {
}
}
+ //cats have 9 lives.
+
async renderHomePage() {
this.showPage('home');
const recents = recentActivityManager.getRecents();
@@ -174,7 +176,7 @@ export class UIRenderer {
const artistsContainer = document.getElementById('search-artists-container');
const albumsContainer = document.getElementById('search-albums-container');
- tracksContainer.innerHTML = this.createSkeletonTracks(8, false);
+ tracksContainer.innerHTML = this.createSkeletonTracks(8, true);
artistsContainer.innerHTML = this.createSkeletonCards(6, true);
albumsContainer.innerHTML = this.createSkeletonCards(6, false);
@@ -217,7 +219,8 @@ export class UIRenderer {
}
if (finalTracks.length) {
- this.renderListWithTracks(tracksContainer, finalTracks, false);
+ // Show album art next to each search result instead of a numeric index
+ this.renderListWithTracks(tracksContainer, finalTracks, true);
} else {
tracksContainer.innerHTML = createPlaceholder('No tracks found.');
}
diff --git a/styles.css b/styles.css
index c4f5ef6..43f0fc8 100644
--- a/styles.css
+++ b/styles.css
@@ -559,6 +559,15 @@ kbd {
justify-content: center;
}
+/* ensure that album cover fit*/
+.track-number .track-item-cover {
+ width: 40px;
+ height: 40px;
+ border-radius: 4px;
+ object-fit: cover;
+ display: block;
+}
+
.track-item-info {
display: flex;
align-items: center;