project-booster-vue 10.18.0 → 10.18.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/package.json +1 -1
- package/src/components/scenario/PbScenario.vue +7 -14
- package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-event-with-default-answer-1-snap.png +0 -0
- package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-event-with-empty-array-1-snap.png +0 -0
- package/src/components/scenario/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-pb-scenario-/360/237/246/240-features-skippable-answers-skippable-without-event-1-snap.png +0 -0
package/package.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<div class="pb-scenario__step-container__before">
|
|
31
31
|
<div
|
|
32
32
|
class="pb-scenario__step-container__before-step xl"
|
|
33
|
+
:class="{ auto: state?.displayedStep?.slots?.beforeContent?.component !== 'MPbProgress' }"
|
|
33
34
|
ref="beforeContent"
|
|
34
35
|
v-if="
|
|
35
36
|
state.displayedStep &&
|
|
@@ -591,9 +592,6 @@ export default defineComponent({
|
|
|
591
592
|
stepAnimationTimeoutId.value = setTimeout(() => {
|
|
592
593
|
nextTick(() => {
|
|
593
594
|
state.value.displayedStep = state.value.currentStep;
|
|
594
|
-
setTimeout(() => {
|
|
595
|
-
scrollToTop();
|
|
596
|
-
}, 200);
|
|
597
595
|
});
|
|
598
596
|
}, STEP_ANIMATION_DELAY);
|
|
599
597
|
};
|
|
@@ -676,15 +674,6 @@ export default defineComponent({
|
|
|
676
674
|
resetHistoryFromCurrentPosition();
|
|
677
675
|
}, 150);
|
|
678
676
|
};
|
|
679
|
-
const scrollToTop = () => {
|
|
680
|
-
const top = window.pageYOffset + (pbScenario?.value?.getBoundingClientRect().top ?? 0);
|
|
681
|
-
|
|
682
|
-
window.scroll({
|
|
683
|
-
top,
|
|
684
|
-
left: 0,
|
|
685
|
-
behavior: 'smooth',
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
677
|
const disablePointerEvents = () => {
|
|
689
678
|
noPointerEvents.value = true;
|
|
690
679
|
|
|
@@ -802,7 +791,7 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
|
|
|
802
791
|
|
|
803
792
|
@include set-from-screen($responsive-breakpoint) {
|
|
804
793
|
width: 720px;
|
|
805
|
-
margin:
|
|
794
|
+
margin: 0 auto;
|
|
806
795
|
|
|
807
796
|
&.auto {
|
|
808
797
|
width: auto;
|
|
@@ -811,7 +800,11 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
|
|
|
811
800
|
|
|
812
801
|
&__before-step {
|
|
813
802
|
width: 100%;
|
|
814
|
-
margin:
|
|
803
|
+
margin: 7.5rem auto 0;
|
|
804
|
+
|
|
805
|
+
&.auto {
|
|
806
|
+
margin: 0;
|
|
807
|
+
}
|
|
815
808
|
}
|
|
816
809
|
}
|
|
817
810
|
|