diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/image.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index ab6bccd0..2876bad3 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -184,10 +184,18 @@ export default { let reveal = null; if (willReveal) { reveal = [ - language.$('misc.contentWarnings', { - warnings: language.formatUnitList(data.contentWarnings), - }), + html.tag('span', {class: 'reveal-heading'}, + language.$('misc.contentWarnings.heading')), + html.tag('br'), + + html.tag('span', {class: 'reveal-warnings'}, + language.$('misc.contentWarnings.warnings', { + warnings: language.formatUnitList(data.contentWarnings), + })), + + html.tag('br'), + html.tag('span', {class: 'reveal-interaction'}, language.$('misc.contentWarnings.reveal')), ]; |