mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update StoryTimelineComponent, added list prop for new timeline layout
This commit is contained in:
parent
d41470830b
commit
1692a95a98
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<div v-if="stories.length != 0">
|
||||
<div id="storyContainer" class="m-3"></div>
|
||||
<div id="storyContainer" :class="[list == true ? 'mt-1 mr-3 mb-0 ml-1':'m-3']"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -18,6 +18,7 @@
|
|||
let Zuck = require('zuck.js');
|
||||
|
||||
export default {
|
||||
props: ['list'],
|
||||
data() {
|
||||
return {
|
||||
stories: {},
|
||||
|
@ -34,6 +35,7 @@
|
|||
.then(res => {
|
||||
let data = res.data;
|
||||
let stories = new Zuck('storyContainer', {
|
||||
list: this.list == true ? true : false,
|
||||
stories: data,
|
||||
localStorage: true,
|
||||
callbacks: {
|
||||
|
|
Loading…
Reference in a new issue