@inappstory/slide-api 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4375,7 +4375,7 @@ const createSlideWrapper = ({ slideBoxRatio, nonce }) => {
4375
4375
  slideWrapper.classList.add("narrative-slide-wrapper");
4376
4376
  slideWrapper.classList.add("stories-viewer");
4377
4377
  const slideOffset = document.createElement("div");
4378
- slideWrapper.classList.add("narrative-slide-offset");
4378
+ slideOffset.classList.add("narrative-slide-offset");
4379
4379
  const slideBoxPrerender = document.createElement("div");
4380
4380
  slideBoxPrerender.classList.add("narrative-slide-box");
4381
4381
  slideBoxPrerender.classList.add("narrative-slide-box-prerender");
@@ -4391,7 +4391,7 @@ const createSlideWrapper = ({ slideBoxRatio, nonce }) => {
4391
4391
  // padding: <?= $slideRatioPadding ?> 0 0 0;
4392
4392
  // }
4393
4393
  style.sheet?.insertRule(`.narrative-slide-box {padding: ${paddingTop} 0 0 0;`);
4394
- slideOffset.appendChild(slideBoxRendered);
4394
+ slideOffset.appendChild(slideBoxPrerender);
4395
4395
  slideOffset.appendChild(slideBoxRendered);
4396
4396
  slideWrapper.appendChild(slideOffset);
4397
4397
  slideWrapper.appendChild(style);