fix: 🐛 fix opacity
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-08-15 16:25:11 +02:00
parent b4160d23d2
commit c91c17ae66
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<NcAppContent :class="episode ? 'padding' : ''"> <NcAppContent :class="{ padding: episode }">
<slot /> <slot />
</NcAppContent> </NcAppContent>
</template> </template>

View File

@ -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" />

View File

@ -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;
} }