diff --git a/js/db.js b/js/db.js index b0a3655..eab226a 100644 --- a/js/db.js +++ b/js/db.js @@ -371,7 +371,7 @@ export class MusicDatabase { } const entry = { ...minifiedItem, pinnedAt: Date.now() }; await this.performTransaction(storeName, 'readwrite', (store) => store.put(entry)); - return true; + return true; } } diff --git a/js/ui.js b/js/ui.js index 8feac95..8c910b8 100644 --- a/js/ui.js +++ b/js/ui.js @@ -179,11 +179,15 @@ export class UIRenderer { let iconHTML; if (item.type === 'user-playlist' && !item.cover && item.images && item.images.length > 0) { const images = item.images.slice(0, 4); - const imgsHTML = images.map((src) => ``).join(''); + const imgsHTML = images + .map((src) => ``) + .join(''); iconHTML = `
${imgsHTML}
`; } else { const coverUrl = - item.type === 'artist' ? this.api.getArtistPictureUrl(item.cover) : this.api.getCoverUrl(item.cover); + item.type === 'artist' + ? this.api.getArtistPictureUrl(item.cover) + : this.api.getCoverUrl(item.cover); const coverClass = item.type === 'artist' ? 'artist' : ''; iconHTML = `${escapeHtml(item.name)}`; } diff --git a/styles.css b/styles.css index 404b1db..e69cff1 100644 --- a/styles.css +++ b/styles.css @@ -1416,7 +1416,6 @@ input[type='search']::-webkit-search-cancel-button { .track-item:hover { background-color: var(--secondary); transform: scale(1.005); - } /* Add active state for click feedback */ @@ -6123,14 +6122,12 @@ textarea:focus { .sidebar-nav-bottom { flex: 0 0 auto; margin-top: auto; - padding: 1rem 0 0 0; + padding: 1rem 0 0; border-top: 1px solid var(--border); background: var(--background); - position: relative; } - .sidebar-nav-bottom::before { content: ''; display: block; @@ -6144,4 +6141,4 @@ textarea:focus { } #sidebar-nav-discord { -} \ No newline at end of file +}