small fixes for bottom

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

View File

@ -1,7 +1,7 @@
<template>
<fragment>
<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"
:key="episode.episodeUrl"
:details="formatTimeAgo(new Date(episode.episodePubDate.date))"

View File

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