@innovastudio/contentbuilder 1.4.31 → 1.4.32
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/package.json
CHANGED
@@ -77435,12 +77435,16 @@ class LivePreview {
|
|
77435
77435
|
resizePreview(size) {
|
77436
77436
|
let modal = this.modal;
|
77437
77437
|
let util = this.util;
|
77438
|
+
modal.classList.remove('is-screen-1920');
|
77438
77439
|
modal.classList.remove('is-screen-1440');
|
77439
77440
|
modal.classList.remove('is-screen-1920');
|
77440
77441
|
modal.classList.remove('is-screen-1024');
|
77441
77442
|
modal.classList.remove('is-screen-768');
|
77442
77443
|
modal.classList.remove('is-screen-375');
|
77443
77444
|
const infoDevice = modal.querySelector('.is-modal-device');
|
77445
|
+
const previewScreen = modal.querySelector('.preview-screen');
|
77446
|
+
previewScreen.style.transition = 'none';
|
77447
|
+
previewScreen.style.opacity = '0';
|
77444
77448
|
|
77445
77449
|
if (size === 1440) {
|
77446
77450
|
modal.classList.add('is-screen-1440');
|
@@ -77448,7 +77452,6 @@ class LivePreview {
|
|
77448
77452
|
infoDevice.setAttribute('title', util.out('Laptop'));
|
77449
77453
|
infoDevice.innerHTML = '<svg class="is-icon-flex" style="width:18px;height:18px"><use xlink:href="#icon-device-laptop"></use></svg>';
|
77450
77454
|
} else if (size === 1024) {
|
77451
|
-
modal.classList.remove('is-screen-1440');
|
77452
77455
|
modal.classList.add('is-screen-1024');
|
77453
77456
|
infoDevice.setAttribute('title', util.out('Tablet (Landscape)'));
|
77454
77457
|
localStorage.setItem('_livepreviewscreen', 'is-screen-1024');
|
@@ -77471,6 +77474,10 @@ class LivePreview {
|
|
77471
77474
|
}
|
77472
77475
|
|
77473
77476
|
this.previewRefresh(true);
|
77477
|
+
setTimeout(() => {
|
77478
|
+
previewScreen.style.opacity = '';
|
77479
|
+
previewScreen.style.transition = '';
|
77480
|
+
}, 100);
|
77474
77481
|
}
|
77475
77482
|
|
77476
77483
|
previewRefresh(disableOnContentLoad, hardReload) {
|