Skip to content

A self-hosted media server and file management system

fix: remove lyrics format requring decimals

aminnausin781232156753
diff --git a/resources/js/components/video/VideoLyrics.vue b/resources/js/components/video/VideoLyrics.vue
index 1f7e4e7a..8c860f58 100644
--- a/resources/js/components/video/VideoLyrics.vue
+++ b/resources/js/components/video/VideoLyrics.vue
@@ -16,7 +16,7 @@ const lyrics = computed(() => {
if (!props.rawLyrics) return [];
const result = props.rawLyrics.split('\n').map((line) => {
- const match = line.match(/\[(\d+):(\d+\.\d+)](.*)/);
+ const match = line.match(/\[(\d+):(\d+(?:\.\d+)?)](.*)/);
if (!match) return { text: line.trim() };
const [, min, sec, text] = match;
@@ -186,7 +186,14 @@ watch(() => props.rawLyrics, resetComponent);
<style lang="css" scoped>
.fade-mask {
- mask-image: linear-gradient(to bottom, transparent 20%, black 10%, black 90%, transparent 100%);
+ /**
+ opacity by height starting from top
+ 0% : transparent
+ 10% : black (opaque)
+ 90% : black (opaque)
+ 100%: transparent
+ */
+ mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
mask-size: 100% 100%;
mask-repeat: no-repeat;