style: 💩 leverage the available space between the episode title and the play button (but hacky way) fix #59
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-09-03 16:12:11 +02:00
parent d1658a9408
commit b54ab2be91
2 changed files with 20 additions and 9 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<NcListItem <NcListItem
:active="isCurrentEpisode(episode)" :active="isCurrentEpisode(episode)"
class="episode"
:details="!oneLine ? formatLocaleDate(new Date(episode.pubDate?.date)) : ''" :details="!oneLine ? formatLocaleDate(new Date(episode.pubDate?.date)) : ''"
:force-display-actions="true" :force-display-actions="true"
:name="episode.name" :name="episode.name"
@ -82,7 +83,7 @@
:value="(episode.action.position * 100) / episode.action.total" /> :value="(episode.action.position * 100) / episode.action.total" />
</template> </template>
<template #subname> <template #subname>
<span v-if="!oneLine">{{ episode.duration }}</span> {{ episode.duration }}
</template> </template>
</NcListItem> </NcListItem>
</template> </template>
@ -201,3 +202,14 @@ export default {
margin-top: 0.4rem; margin-top: 0.4rem;
} }
</style> </style>
<style>
.episode .list-item-content__name {
max-width: 100%;
}
.episode .list-item-content__subname {
flex-basis: auto;
flex-grow: 0;
}
</style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="root"> <div>
<VolumeHighIcon <VolumeHighIcon
v-if="volume > 0.7" v-if="volume > 0.7"
class="pointer" class="pointer"
@ -21,7 +21,6 @@
:size="30" :size="30"
@click="setVolume(volumeMuted)" /> @click="setVolume(volumeMuted)" />
<input <input
class="volume"
max="1" max="1"
min="0" min="0"
step="0.1" step="0.1"
@ -64,19 +63,19 @@ export default {
</script> </script>
<style scoped> <style scoped>
.pointer { div {
cursor: pointer;
}
.root {
align-items: center; align-items: center;
display: flex; display: flex;
gap: 5px; gap: 5px;
justify-content: flex-end; justify-content: flex-end;
} }
.volume { input {
transform: rotate(270deg); transform: rotate(270deg);
width: 4rem; width: 4rem;
} }
.pointer {
cursor: pointer;
}
</style> </style>