« 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--static/site.css2
-rw-r--r--upd8.js9
2 files changed, 3 insertions, 8 deletions
diff --git a/static/site.css b/static/site.css
index 2892dd8..016f74c 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 fcb268b..5f49bdd 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}`)
                     })}
                 </div>
             `