Skip to content

Commit

Permalink
add position fixed on relevent tutorial popups
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragnar-Oock committed Mar 29, 2021
1 parent 2441410 commit 255342d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/components/Tour/TourWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,17 @@ export default {
content: this.$t('tutorial.steps.start.content'),
header: { title: this.$t('tutorial.steps.start.title') },
params: {
enableScrolling: false
enableScrolling: false,
positionFixed: true
}
},
{
target: '#darkmode-label',
content: this.$t('tutorial.steps.darkmode.content'),
header: { title: this.$t('tutorial.steps.darkmode.title') },
params: {
enableScrolling: false
enableScrolling: false,
positionFixed: true
}
},
{
Expand Down Expand Up @@ -160,10 +162,7 @@ export default {
}).catch(reject);
}),
params: {
enableScrolling: false,
modifier: {
placement: 'top'
}
enableScrolling: false
}
},
{
Expand Down Expand Up @@ -194,16 +193,22 @@ export default {
target: '#kofi',
content: this.$t('tutorial.steps.tips.content'),
header: { title: this.$t('tutorial.steps.tips.title') },
before: () => new Promise(resolve => {
window.scrollTo({ top: 0, behavior: 'smooth' });
resolve();
}),
params: {
enableScrolling: false
enableScrolling: false,
positionFixed: true
}
},
{
target: '#kofi',
content: this.$t('tutorial.steps.bugs.content'),
header: { title: this.$t('tutorial.steps.bugs.title') },
params: {
enableScrolling: false
enableScrolling: false,
positionFixed: true
}
}
Expand Down

0 comments on commit 255342d

Please sign in to comment.