fix: 🐛 fix opacity
This commit is contained in:
parent
b4160d23d2
commit
c91c17ae66
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<NcAppContent :class="episode ? 'padding' : ''">
|
<NcAppContent :class="{ padding: episode }">
|
||||||
<slot />
|
<slot />
|
||||||
</NcAppContent>
|
</NcAppContent>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<NcAppNavigation :class="episode ? 'padding' : ''">
|
<NcAppNavigation :class="{ padding: episode }">
|
||||||
<slot />
|
<slot />
|
||||||
<template #list>
|
<template #list>
|
||||||
<slot name="list" />
|
<slot name="list" />
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
v-for="episode in filteredEpisodes"
|
v-for="episode in filteredEpisodes"
|
||||||
:key="episode.guid"
|
:key="episode.guid"
|
||||||
:active="isCurrentEpisode(episode)"
|
:active="isCurrentEpisode(episode)"
|
||||||
:class="hasEnded(episode) ? 'ended' : ''"
|
|
||||||
:details="formatLocaleDate(new Date(episode.pubDate?.date))"
|
:details="formatLocaleDate(new Date(episode.pubDate?.date))"
|
||||||
:force-display-actions="true"
|
:force-display-actions="true"
|
||||||
:href="$route.href"
|
:href="$route.href"
|
||||||
:name="episode.name"
|
:name="episode.name"
|
||||||
|
:style="{ opacity: hasEnded(episode) ? 0.4 : 1 }"
|
||||||
target="_self"
|
target="_self"
|
||||||
:title="episode.description"
|
:title="episode.description"
|
||||||
@click="modalEpisode = episode">
|
@click="modalEpisode = episode">
|
||||||
|
@ -230,6 +230,7 @@ export default {
|
||||||
isListening(episode) {
|
isListening(episode) {
|
||||||
return (
|
return (
|
||||||
episode.action &&
|
episode.action &&
|
||||||
|
episode.action.action &&
|
||||||
episode.action.action.toLowerCase() === 'play' &&
|
episode.action.action.toLowerCase() === 'play' &&
|
||||||
!this.hasEnded(episode)
|
!this.hasEnded(episode)
|
||||||
)
|
)
|
||||||
|
@ -252,6 +253,9 @@ export default {
|
||||||
[episode.action],
|
[episode.action],
|
||||||
)
|
)
|
||||||
this.updateList(episode)
|
this.updateList(episode)
|
||||||
|
if (read && this.episode && episode.url === this.episode.url) {
|
||||||
|
this.load(null)
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
showError(t('repod', 'Could not change the status of the episode'))
|
showError(t('repod', 'Could not change the status of the episode'))
|
||||||
|
@ -269,10 +273,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.ended {
|
|
||||||
opacity: 0.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
margin-top: 0.4rem;
|
margin-top: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue