@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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4373,7 +4373,7 @@ const createSlideWrapper = ({ slideBoxRatio, nonce }) => {
|
|
|
4373
4373
|
slideWrapper.classList.add("narrative-slide-wrapper");
|
|
4374
4374
|
slideWrapper.classList.add("stories-viewer");
|
|
4375
4375
|
const slideOffset = document.createElement("div");
|
|
4376
|
-
|
|
4376
|
+
slideOffset.classList.add("narrative-slide-offset");
|
|
4377
4377
|
const slideBoxPrerender = document.createElement("div");
|
|
4378
4378
|
slideBoxPrerender.classList.add("narrative-slide-box");
|
|
4379
4379
|
slideBoxPrerender.classList.add("narrative-slide-box-prerender");
|
|
@@ -4389,7 +4389,7 @@ const createSlideWrapper = ({ slideBoxRatio, nonce }) => {
|
|
|
4389
4389
|
// padding: <?= $slideRatioPadding ?> 0 0 0;
|
|
4390
4390
|
// }
|
|
4391
4391
|
style.sheet?.insertRule(`.narrative-slide-box {padding: ${paddingTop} 0 0 0;`);
|
|
4392
|
-
slideOffset.appendChild(
|
|
4392
|
+
slideOffset.appendChild(slideBoxPrerender);
|
|
4393
4393
|
slideOffset.appendChild(slideBoxRendered);
|
|
4394
4394
|
slideWrapper.appendChild(slideOffset);
|
|
4395
4395
|
slideWrapper.appendChild(style);
|