« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/image.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index 5ea89a57..4dc1100c 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -140,9 +140,6 @@ export default {
       (customLink
         ? {href: slots.link}
         : {href: originalSrc}),
-
-      customLink &&
-        {class: 'no-image-preview'},
     ]);
 
     const containerAttributes = html.attributes();
@@ -353,6 +350,12 @@ export default {
         html.tag('div', {class: 'image-container'},
           containerAttributes,
 
+          willLink &&
+            {class: 'has-link'},
+
+          customLink &&
+            {class: 'no-image-preview'},
+
           !originalSrc &&
             {class: 'placeholder-image'},