From 17cc76c52c37e1d15fff9696e535afaf1bb0481a Mon Sep 17 00:00:00 2001 From: kid1412520 Date: Wed, 20 May 2026 14:21:13 +0800 Subject: [PATCH 1/3] Fix AMLL lyric horizontal padding binding --- src/components/Player/PlayerLyric/AMLyric.vue | 7 ++++--- src/components/Setting/config/lyric.ts | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/Player/PlayerLyric/AMLyric.vue b/src/components/Player/PlayerLyric/AMLyric.vue index 048793f4f..ba2033a26 100644 --- a/src/components/Player/PlayerLyric/AMLyric.vue +++ b/src/components/Player/PlayerLyric/AMLyric.vue @@ -21,6 +21,7 @@ '--amll-lyric-right-padding': settingStore.lyricAlignRight ? `${settingStore.lyricHorizontalOffset}px` : '', + '--amll-lyric-horizontal-padding': `${settingStore.lyricHorizontalOffset}px`, }" >
歌词正在加载中...
@@ -199,8 +200,8 @@ watch(lyricPlayerRef, (player) => { margin-left: 0; .amll-lyric-player { > div { - padding-left: 20px; - padding-right: 20px; + padding-left: var(--amll-lyric-horizontal-padding, 20px); + padding-right: var(--amll-lyric-horizontal-padding, 20px); } } } @@ -213,7 +214,7 @@ watch(lyricPlayerRef, (player) => { @media (max-width: 990px) { padding: 0; - margin-right: -20px; + margin-right: calc(0px - var(--amll-lyric-horizontal-padding, 20px)); } @media (max-width: 500px) { margin-right: 0; diff --git a/src/components/Setting/config/lyric.ts b/src/components/Setting/config/lyric.ts index d32b91a33..5f8667747 100644 --- a/src/components/Setting/config/lyric.ts +++ b/src/components/Setting/config/lyric.ts @@ -333,9 +333,9 @@ export const useLyricSettings = (): SettingConfig => { }, { key: "lyricHorizontalOffset", - label: "歌词左侧边距", + label: "歌词两侧边距", type: "slider", - description: "调整全屏模式下歌词的起始位置", + description: "调整全屏模式下歌词两侧的水平边距", min: 0, max: 200, step: 1, From afaec7ced7ac5fe47019f2da2ccbdb787f2883da Mon Sep 17 00:00:00 2001 From: kid1412520 Date: Wed, 20 May 2026 14:32:48 +0800 Subject: [PATCH 2/3] Link lyric header padding to lyric offset --- src/components/Player/FullPlayerMobile.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/Player/FullPlayerMobile.vue b/src/components/Player/FullPlayerMobile.vue index 8a3ec8286..c2b6dcb2b 100644 --- a/src/components/Player/FullPlayerMobile.vue +++ b/src/components/Player/FullPlayerMobile.vue @@ -1,5 +1,9 @@