« get me outta code hell

css, content: transformContent: separate images from container - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-08 10:00:43 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-08 10:00:43 -0300
commit69bfe1697e5513d49b3dcf1e64a0e82c512cbdc8 (patch)
tree9ab7295cef66bc61c6ecf15c73a89a73eb64caeb /src/content/dependencies
parent31a15f783f915811990cefb90fe1661293c49f3d (diff)
css, content: transformContent: separate images from container
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index eed00882..fef74e8c 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -351,14 +351,14 @@ export default {
             return {
               type: 'image',
               data:
-                image.slots({
-                  src,
-                  class: 'content-image',
-                  link: link ?? true,
-                  width: width ?? null,
-                  height: height ?? null,
-                  thumb: slots.thumb,
-                }),
+                html.tag('div', {class: 'content-image'},
+                  image.slots({
+                    src,
+                    link: link ?? true,
+                    width: width ?? null,
+                    height: height ?? null,
+                    thumb: slots.thumb,
+                  })),
             };
           }