diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-12-29 08:08:32 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-12-29 08:08:32 -0400 |
commit | d634bcafffbbfee89a6a81dc7b667b97b7f7a467 (patch) | |
tree | d6a68033ad56b41dfc24657202bb2e4dada90507 /src/misc-templates.js | |
parent | f09d71082b755a7ef652cf1c9eee5c27c9386701 (diff) |
clean up carousel HTML/styling a bit
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index f27074b..7072e57 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -706,13 +706,16 @@ function unbound_getCarouselHTML({ items = items.slice(0, maxCarouselLayoutItems + 1); - return (x => x)(html.tag('div', {class: 'carousel-container'}, + return html.tag('div', + { + class: 'carousel-container', + 'data-carousel-rows': rows, + 'data-carousel-columns': columns, + }, repeat(3, html.tag('div', { class: 'carousel-grid', - 'data-carousel-rows': rows, - 'data-carousel-columns': columns, 'aria-hidden': 'true', }, items @@ -732,7 +735,7 @@ function unbound_getCarouselHTML({ lazy: typeof lazy === 'number' ? i >= lazy : lazy, square: true, }), - }))))))); + })))))); } // Nav-bar links |