From 1efc241820044a870529847ab1e456979c4fd375 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 9 Dec 2020 17:28:00 -0400 Subject: minor tweaks --- static/site.css | 2 +- upd8.js | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/static/site.css b/static/site.css index 2892dd87..016f74c4 100644 --- a/static/site.css +++ b/static/site.css @@ -335,7 +335,7 @@ a.box:focus:not(:focus-visible) { a.box img { display: block; width: 100%; - height: auto; + height: 100%; } h1 { diff --git a/upd8.js b/upd8.js index fcb268bc..5f49bddd 100644 --- a/upd8.js +++ b/upd8.js @@ -1112,7 +1112,7 @@ function getGridHTML({ entries, srcFn, hrefFn, - altFn, + altFn = () => '', details = false, lazy = true }) { @@ -1137,7 +1137,6 @@ function getAlbumGridHTML(props) { return getGridHTML({ srcFn: getAlbumCover, hrefFn: album => `${C.ALBUM_DIRECTORY}/${album.directory}/`, - altFn: () => 'album cover', ...props }); } @@ -1146,7 +1145,6 @@ function getAlbumGridHTML(props) { return getGridHTML({ srcFn: getAlbumCover, hrefFn: album => `${C.ALBUM_DIRECTORY}/${album.directory}/`, - altFn: () => 'album cover', ...props }); } @@ -2551,10 +2549,7 @@ function writeTagPage(tag) { : getAlbumCover(thing)), hrefFn: thing => (thing.album ? `${C.TRACK_DIRECTORY}/${thing.directory}/` - : `${C.ALBUM_DIRECTORY}/${thing.directory}`), - altFn: thing => (thing.album - ? 'track cover' - : 'album cover') + : `${C.ALBUM_DIRECTORY}/${thing.directory}`) })} ` -- cgit 1.3.0-6-gf8a5