Fix history cache, show percent watched in web app
This commit is contained in:
1 parent
e9c2ab9f76
commit
f681a7024c
4 files changed
+14
-4
No files matched your search
@@ -19,6 +19,7 @@
|
||||
export let lengthText: string | undefined = undefined;
|
||||
export let liveNow: boolean = undefined;
|
||||
export let lines: string[] | undefined = undefined;
|
||||
export let percentDurationWatched: number | undefined = undefined;
|
||||
|
||||
// svelte-ignore unused-export-let
|
||||
export let type: string = undefined;
|
||||
@@ -207,6 +208,7 @@
|
||||
bind:lengthText
|
||||
bind:viewCount
|
||||
bind:invidiousInstance
|
||||
bind:percentDurationWatched
|
||||
/>
|
||||
<div class="card-body">
|
||||
<h3 class="card-title text-base line-clamp-2 min-h-12">{title || ""}</h3>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
export let viewCount: number | undefined = undefined;
|
||||
export let isUpcoming: boolean | undefined = undefined;
|
||||
export let premiereTimestamp: number | undefined = undefined;
|
||||
export let percentDurationWatched: number | undefined = undefined;
|
||||
|
||||
export let invidiousInstance;
|
||||
|
||||
@@ -92,4 +93,10 @@
|
||||
{getFormattedTime(lengthText, lengthSeconds)}
|
||||
</div>
|
||||
{/if}
|
||||
{#if percentDurationWatched}
|
||||
<div
|
||||
class="absolute left-0 bottom-0 h-1 bg-red-600 rounded-box"
|
||||
style="width: {Math.min(percentDurationWatched, 100)}%;"
|
||||
></div>
|
||||
{/if}
|
||||
</figure>
|
||||
Reference in new issue
Block a user