small fixes for bottom
All checks were successful
repod / nextcloud (push) Successful in 1m19s
repod / nodejs (push) Successful in 1m35s

This commit is contained in:
Michel Roux 2023-08-28 08:14:16 +02:00
parent a98a0dbcdc
commit b7c4fb2f61
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<ul> <ul :style="{marginBottom: currentEpisode ? '6rem' : 'auto'}">
<NcListItem v-for="feed in feeds" <NcListItem v-for="feed in feeds"
:key="feed.link" :key="feed.link"
:details="formatTimeAgo(new Date(feed.fetchedAtUnix*1000))" :details="formatTimeAgo(new Date(feed.fetchedAtUnix*1000))"
@ -42,6 +42,11 @@ export default {
feeds: [], feeds: [],
} }
}, },
computed: {
currentEpisode() {
return this.$store.state.player.episode
},
},
watch: { watch: {
value() { value() {
this.search() this.search()

View File

@ -1,7 +1,7 @@
<template> <template>
<fragment> <fragment>
<NcLoadingIcon v-if="loading" /> <NcLoadingIcon v-if="loading" />
<ul v-if="!loading" :style="{marginBottom: currentEpisode ? '5rem' : 'auto'}"> <ul v-if="!loading" :style="{marginBottom: currentEpisode ? '6rem' : 'auto'}">
<NcListItem v-for="episode in episodes" <NcListItem v-for="episode in episodes"
:key="episode.episodeUrl" :key="episode.episodeUrl"
:details="formatTimeAgo(new Date(episode.episodePubDate.date))" :details="formatTimeAgo(new Date(episode.episodePubDate.date))"

View File

@ -10,7 +10,7 @@
</NcAppNavigationNew> </NcAppNavigationNew>
</router-link> </router-link>
<NcLoadingIcon v-if="loading" /> <NcLoadingIcon v-if="loading" />
<ul v-if="!loading"> <ul v-if="!loading" :style="{marginBottom: currentEpisode ? '6rem' : 'auto'}">
<Item v-for="subscriptionUrl of subscriptions" <Item v-for="subscriptionUrl of subscriptions"
:key="subscriptionUrl" :key="subscriptionUrl"
:url="subscriptionUrl" /> :url="subscriptionUrl" />
@ -48,6 +48,9 @@ export default {
} }
}, },
computed: { computed: {
currentEpisode() {
return this.$store.state.player.episode
},
subscriptions() { subscriptions() {
return this.$store.state.subscriptions.subscriptions return this.$store.state.subscriptions.subscriptions
}, },