« get me outta code hell

minor tweaks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-12-09 17:28:00 -0400
committer(quasar) nebula <towerofnix@gmail.com>2020-12-09 17:28:00 -0400
commit1efc241820044a870529847ab1e456979c4fd375 (patch)
tree17a3ce7044ef5ec7279cf54257084e2089c64b39
parenta4e7a01c2781b2e21b797da112692ee77a3acc56 (diff)
minor tweaks
-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 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}`)
                     })}
                 </div>
             `