mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update StoryViewer.vue component
This commit is contained in:
parent
64a8a7d43f
commit
894ce91f22
1 changed files with 3 additions and 7 deletions
|
@ -15,12 +15,6 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style type="text/css" scoped>
|
|
||||||
#storyContainer > .story {
|
|
||||||
margin-right: 3rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
import 'zuck.js/dist/zuck.css';
|
import 'zuck.js/dist/zuck.css';
|
||||||
import 'zuck.js/dist/skins/snapgram.css';
|
import 'zuck.js/dist/skins/snapgram.css';
|
||||||
|
@ -52,7 +46,7 @@
|
||||||
window._storyData = data;
|
window._storyData = data;
|
||||||
window.stories = new Zuck('storyContainer', {
|
window.stories = new Zuck('storyContainer', {
|
||||||
stories: data,
|
stories: data,
|
||||||
localStorage: true,
|
localStorage: false,
|
||||||
callbacks: {
|
callbacks: {
|
||||||
onOpen (storyId, callback) {
|
onOpen (storyId, callback) {
|
||||||
document.body.style.overflow = "hidden";
|
document.body.style.overflow = "hidden";
|
||||||
|
@ -74,6 +68,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
||||||
|
// todo: refactor this mess
|
||||||
document.querySelectorAll('#storyContainer .story')[0].click()
|
document.querySelectorAll('#storyContainer .story')[0].click()
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
Loading…
Reference in a new issue