From d406c50e3b51d2d370a6331f1aaf9603782594b9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 8 Apr 2023 17:14:48 -0300 Subject: content: image: fix missing .image-inner-area div --- src/content/dependencies/image.js | 3 ++- tap-snapshots/test/snapshot/image.js.test.cjs | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 1960fb0a..822a8996 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -148,7 +148,8 @@ export default { wrapped = html.tag('div', {class: 'image-container'}, - wrapped); + html.tag('div', {class: 'image-inner-area'}, + wrapped)); if (willReveal) { wrapped = diff --git a/tap-snapshots/test/snapshot/image.js.test.cjs b/tap-snapshots/test/snapshot/image.js.test.cjs index 5561c02a..f1512930 100644 --- a/tap-snapshots/test/snapshot/image.js.test.cjs +++ b/tap-snapshots/test/snapshot/image.js.test.cjs @@ -7,7 +7,7 @@ 'use strict' exports[`test/snapshot/image.js TAP image (snapshot) > content warnings via tags 1`] = `
-
+
cw: too cool for school @@ -19,42 +19,42 @@ exports[`test/snapshot/image.js TAP image (snapshot) > content warnings via tags ` exports[`test/snapshot/image.js TAP image (snapshot) > id with link 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > id with square 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > id without link 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > lazy with square 1`] = ` - -
+ +
` exports[`test/snapshot/image.js TAP image (snapshot) > link with file size 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > source missing 1`] = ` -
Example of missing source message.
+
Example of missing source message.
` exports[`test/snapshot/image.js TAP image (snapshot) > source via path 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > source via src 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > square 1`] = ` -
+
` exports[`test/snapshot/image.js TAP image (snapshot) > width & height 1`] = ` -
+
` -- cgit 1.3.0-6-gf8a5