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>
<NcListItem
:active="isCurrentEpisode(episode)"
class="episode"
:details="!oneLine ? formatLocaleDate(new Date(episode.pubDate?.date)) : ''"
:force-display-actions="true"
:name="episode.name"
@ -82,7 +83,7 @@
:value="(episode.action.position * 100) / episode.action.total" />
</template>
<template #subname>
<span v-if="!oneLine">{{ episode.duration }}</span>
{{ episode.duration }}
</template>
</NcListItem>
</template>
@ -201,3 +202,14 @@ export default {
margin-top: 0.4rem;
}
</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>
<div class="root">
<div>
<VolumeHighIcon
v-if="volume > 0.7"
class="pointer"
@ -21,7 +21,6 @@
:size="30"
@click="setVolume(volumeMuted)" />
<input
class="volume"
max="1"
min="0"
step="0.1"
@ -64,19 +63,19 @@ export default {
</script>
<style scoped>
.pointer {
cursor: pointer;
}
.root {
div {
align-items: center;
display: flex;
gap: 5px;
justify-content: flex-end;
}
.volume {
input {
transform: rotate(270deg);
width: 4rem;
}
.pointer {
cursor: pointer;
}
</style>