Skip to content

High performance self-hosted photo and video management solution.

fix(web): added background gradient for video time visibility (#25138)

Hemendra Singh Shekhawat7992fe85d67b
diff --git a/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte b/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte
index b28e484819..222fa7a8ec 100644
--- a/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte
+++ b/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte
@@ -85,7 +85,9 @@
></video>
{/if}
-<div class="absolute end-0 top-0 flex place-items-center gap-1 text-xs font-medium text-white">
+<div
+ class="absolute end-0 top-0 flex place-items-center gap-1 text-xs font-medium text-white text-shadow-[1px_1px_6px_rgb(0_0_0)]"
+>
{#if showTime}
<span class="pt-2">
{#if remainingSeconds < 60}
@@ -99,7 +101,7 @@
{/if}
<!-- svelte-ignore a11y_no_static_element_interactions -->
- <span class="pe-2 pt-2" onmouseenter={onMouseEnter} onmouseleave={onMouseLeave}>
+ <span class="pe-2 pt-2 drop-shadow-[1px_1px_6px_rgb(0_0_0)]" onmouseenter={onMouseEnter} onmouseleave={onMouseLeave}>
{#if enablePlayback}
{#if loading}
<LoadingSpinner />