« get me outta code hell

content: flatten .square-content into .image-outer-area - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-13 17:15:24 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-13 17:16:29 -0400
commit410a4712ee0ebb25682b9c85e2c4f63fbd87993a (patch)
tree4148ee157aeaad1a4d6b54d47b134099d876ef3b /src
parent1d3eac688b0d800323a1db9fcaf598005f50051a (diff)
content: flatten .square-content into .image-outer-area
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/image.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index a39acca3..1582d3f4 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -317,13 +317,10 @@ export default {
 
       wrapped =
         html.tag('div', {class: 'image-outer-area'},
-          wrapped);
+          willSquare &&
+            {class: 'square-content'},
 
-      if (willSquare) {
-        wrapped =
-          html.tag('div', {class: 'square-content'},
-            wrapped);
-      }
+          wrapped);
 
       wrapped =
         html.tag('div', {class: 'image-container'},