mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
add shadow to chapter title
like on youtube
This commit is contained in:
parent
0e13fe3909
commit
b552f037f7
1 changed files with 4 additions and 1 deletions
|
@ -12,7 +12,10 @@
|
||||||
class="absolute bottom-0 z-[2000] mb-[3.5%] hidden flex-col items-center"
|
class="absolute bottom-0 z-[2000] mb-[3.5%] hidden flex-col items-center"
|
||||||
>
|
>
|
||||||
<canvas id="preview" ref="preview" class="rounded-sm" />
|
<canvas id="preview" ref="preview" class="rounded-sm" />
|
||||||
<span v-if="video.chapters.length > 1" class="mt-2 text-sm -mb-2">
|
<span
|
||||||
|
v-if="video.chapters.length > 1"
|
||||||
|
class="mt-2 text-sm drop-shadow-[0_0_2px_white] -mb-2 .dark:drop-shadow-[0_0_2px_black]"
|
||||||
|
>
|
||||||
{{ video.chapters.findLast(chapter => chapter.start < currentTime)?.title }}
|
{{ video.chapters.findLast(chapter => chapter.start < currentTime)?.title }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue