From 58692c5544781c0fb50f7ab112be7eb38a188ae6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 13 Jan 2024 16:00:03 -0400 Subject: content, test: image: remove 'id' slot --- src/content/dependencies/generateCoverArtwork.js | 1 - src/content/dependencies/image.js | 9 --------- src/static/site6.css | 2 +- .../snapshot/generateAlbumCoverArtwork.js.test.cjs | 2 +- .../test/snapshot/generateCoverArtwork.js.test.cjs | 2 +- .../snapshot/generateTrackCoverArtwork.js.test.cjs | 4 ++-- tap-snapshots/test/snapshot/image.js.test.cjs | 12 ----------- test/snapshot/image.js | 23 ---------------------- 8 files changed, 5 insertions(+), 50 deletions(-) diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js index a992f5da..e333b190 100644 --- a/src/content/dependencies/generateCoverArtwork.js +++ b/src/content/dependencies/generateCoverArtwork.js @@ -50,7 +50,6 @@ export default { alt: slots.alt, color: slots.color, thumb: 'medium', - id: 'cover-art', reveal: true, link: true, square: true, diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 4dc1100c..3121aca3 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -59,7 +59,6 @@ export default { lazy: {type: 'boolean', default: false}, square: {type: 'boolean', default: false}, - id: {type: 'string'}, class: {type: 'string'}, alt: {type: 'string'}, width: {type: 'number'}, @@ -144,14 +143,6 @@ export default { const containerAttributes = html.attributes(); - if (slots.id) { - if (willLink) { - linkAttributes.set('id', slots.id); - } else { - imgAttributes.set('id', slots.id); - } - } - if (slots.class) { if (willLink) { linkAttributes.set('class', slots.class); diff --git a/src/static/site6.css b/src/static/site6.css index 153d693f..5ee062f5 100644 --- a/src/static/site6.css +++ b/src/static/site6.css @@ -659,7 +659,7 @@ p .current { border-top-color: var(--deep-color); } -#cover-art .image { +#cover-art-container .image { display: block; width: 100%; height: 100%; diff --git a/tap-snapshots/test/snapshot/generateAlbumCoverArtwork.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumCoverArtwork.js.test.cjs index efcb4e95..71d9c55d 100644 --- a/tap-snapshots/test/snapshot/generateAlbumCoverArtwork.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumCoverArtwork.js.test.cjs @@ -15,7 +15,7 @@ exports[`test/snapshot/generateAlbumCoverArtwork.js > TAP > generateAlbumCoverAr { name: 'creepy crawlies', isContentWarning: true } ] ] - slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], color: '#f28514', thumb: 'medium', id: 'cover-art', reveal: true, link: true, square: true }] + slots: { path: [ 'media.albumCover', 'bee-forus-seatbelt-safebee', 'png' ], color: '#f28514', thumb: 'medium', reveal: true, link: true, square: true }]