diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-24 03:23:08 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-24 03:23:08 +0100 |
commit | 2898e8dbb11e5d69934ae39cb8152120b8cc0b21 (patch) | |
tree | fd3f531dd7be64d849cb06f68e1b6ca0b45a3caf /public | |
parent | e8882a611a4f505289c73d7e90a5fd0910896c5c (diff) | |
download | gallery-2898e8dbb11e5d69934ae39cb8152120b8cc0b21.tar.gz gallery-2898e8dbb11e5d69934ae39cb8152120b8cc0b21.tar.xz gallery-2898e8dbb11e5d69934ae39cb8152120b8cc0b21.zip |
Fixup
Diffstat (limited to 'public')
-rw-r--r-- | public/gallery.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/gallery.js b/public/gallery.js index dbcadf6..c7d21a1 100644 --- a/public/gallery.js +++ b/public/gallery.js @@ -427,8 +427,10 @@ let OrphansRow = { view(node) { const info = vnode.attrs.info return m('.row', [ - m('img.thumbnail', {src: `/thumb/${info.sha1}`, - width: info.thumbW, height: info.thumbH, loading}), + // It might not load, but still allow tag viewing. + m(m.route.Link, {href: `/view/${info.sha1}`}, + m('img.thumbnail', {src: `/thumb/${info.sha1}`, + width: info.thumbW, height: info.thumbH, loading})), `${info.tags} tags`, m(OrphansReplacement, {info: info.replacement}), ]) |