Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions src/ui/PodcastView/EpisodePlayer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@
{:else}
<div
class="podcast-artwork-overlay"
style={`display: ${
isHoveringArtwork || $isPaused ? "block" : "none"
}`}
class:visible={isHoveringArtwork || $isPaused}
>
<Icon icon={$isPaused ? "play" : "pause"} clickable={false} />
</div>
Expand Down Expand Up @@ -251,9 +249,6 @@
on:click={onClickProgressbar}
value={$currentTime}
max={$duration}
style={{
"height": "2rem",
}}
/>
<span>{formatSeconds($duration - $currentTime, "HH:mm:ss")}</span>
</div>
Expand All @@ -263,21 +258,15 @@
icon="skip-back"
tooltip="Skip backward"
on:click={$plugin.api.skipBackward.bind($plugin.api)}
style={{
margin: "0",
cursor: "pointer",
}}
class="player-control-button"
/>
<Button
icon="skip-forward"
tooltip="Skip forward"
on:click={$plugin.api.skipForward.bind($plugin.api)}
style={{
margin: "0",
cursor: "pointer",
}}
/>
</div>
class="player-control-button"
/>
</div>

<div class="slider-stack">
<div class="volume-container">
Expand Down Expand Up @@ -371,11 +360,22 @@

:global(.podcast-artwork-overlay) {
position: absolute;
inset: 0;
display: none;
align-items: center;
justify-content: center;
}

:global(.podcast-artwork-overlay.visible) {
display: flex;
}

:global(.podcast-artwork-isloading-overlay) {
position: absolute;
display: block;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
}

:global(.podcast-artwork-overlay:hover) {
Expand All @@ -400,6 +400,10 @@
justify-content: space-around;
}

:global(.episode-player .status-container .progress) {
height: var(--episode-player-progress-height, 2rem);
}

:global(.controls-container) {
display: flex;
align-items: center;
Expand All @@ -409,6 +413,11 @@
margin-right: 25%;
}

:global(.player-control-button) {
margin: 0;
cursor: pointer;
}

:global(.slider-stack) {
display: flex;
flex-direction: column;
Expand Down
18 changes: 7 additions & 11 deletions src/ui/PodcastView/PodcastView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ onMount(() => {
>
<Icon
icon={"arrow-left"}
style={{
display: "flex",
"align-items": "center",
}}
size={20}
clickable={false}
/> Latest Episodes
Expand All @@ -258,17 +254,11 @@ onMount(() => {
>
<Icon
icon={"arrow-left"}
style={{
display: "flex",
"align-items": "center",
}}
size={20}
clickable={false}
/> Latest Episodes
</button>
<div
style="display: flex; align-items: center; justify-content: center;"
>
<div class="playlist-header-icon">
<Icon
icon={selectedPlaylist.icon}
size={40}
Expand Down Expand Up @@ -314,4 +304,10 @@ onMount(() => {
.go-back:hover {
opacity: 1;
}

.playlist-header-icon {
display: flex;
align-items: center;
justify-content: center;
}
</style>