UI fix and following page
This commit is contained in:
@ -71,8 +71,6 @@ export default {
|
||||
async mounted() {
|
||||
window.onscroll = this.getNextCategory
|
||||
|
||||
this.following = await followersStreaming(getFollows())
|
||||
|
||||
// get discover page
|
||||
await getEndpoint('api/discover')
|
||||
.catch(() => {
|
||||
@ -81,6 +79,8 @@ export default {
|
||||
.then((data: CategoryPreviewInterface[]) => {
|
||||
this.data = data
|
||||
})
|
||||
|
||||
this.following = await followersStreaming(getFollows())
|
||||
},
|
||||
components: {
|
||||
StreamPreviewVue,
|
||||
@ -96,10 +96,10 @@ export default {
|
||||
<error-message v-else-if="status == 'error'"></error-message>
|
||||
|
||||
<div v-else-if="data" class="max-w-5xl mx-auto">
|
||||
<div v-if="following && following.length > 0" class="p-2 text-white">
|
||||
<div v-if="following && following.length > 0" class="p-2 text-white w-[100vw]">
|
||||
<h1 class="font-bold text-5xl">Following</h1>
|
||||
<p class="text-xl">Streamers you follow</p>
|
||||
<ul class="flex flex-wrap justify-begin overflow-x-scroll space-x-2 mt-1 h-[19rem] items-center">
|
||||
<ul class="flex flex-nowrap justify-begin overflow-x-scroll overflow-y-hidden space-x-2 mt-1 h-[19rem] items-center">
|
||||
<li v-for="streamer in following" :key="streamer" class="inline-block">
|
||||
<stream-preview-vue :name="streamer"></stream-preview-vue>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user