style: auto-fix linting issues

This commit is contained in:
SamidyFR 2026-04-06 15:54:39 +00:00 committed by github-actions[bot]
parent 22524a4afa
commit 77ffff3a85
3 changed files with 29 additions and 26 deletions

View file

@ -293,7 +293,12 @@
<button id="fs-repeat-btn" title="Repeat"> <button id="fs-repeat-btn" title="Repeat">
<use svg="!lucide/repeat.svg" size="24" /> <use svg="!lucide/repeat.svg" size="24" />
</button> </button>
<button id="fs-quality-btn" class="fs-quality-btn" title="Quality" style="display: none"> <button
id="fs-quality-btn"
class="fs-quality-btn"
title="Quality"
style="display: none"
>
<use svg="!lucide/pencil-line.svg" size="20" /> <use svg="!lucide/pencil-line.svg" size="20" />
<span class="fs-quality-label">Auto</span> <span class="fs-quality-label">Auto</span>
</button> </button>

View file

@ -1336,7 +1336,9 @@ export class UIRenderer {
nextTrackEl.classList.remove('animate-in'); nextTrackEl.classList.remove('animate-in');
} }
const canRenderLyrics = Boolean(lyricsManager && activeElement && lyricsPane && lyricsContent && track.type !== 'video'); const canRenderLyrics = Boolean(
lyricsManager && activeElement && lyricsPane && lyricsContent && track.type !== 'video'
);
if (canRenderLyrics) { if (canRenderLyrics) {
this.fullscreenLyricsVisible = true; this.fullscreenLyricsVisible = true;
if (lyricsToggleBtn) lyricsToggleBtn.style.removeProperty('display'); if (lyricsToggleBtn) lyricsToggleBtn.style.removeProperty('display');
@ -1349,7 +1351,8 @@ export class UIRenderer {
overlay.classList.add('lyrics-unavailable'); overlay.classList.add('lyrics-unavailable');
if (lyricsContent) { if (lyricsContent) {
clearFullscreenLyricsSync(lyricsContent); clearFullscreenLyricsSync(lyricsContent);
lyricsContent.innerHTML = '<div class="fullscreen-lyrics-empty">Lyrics are not available for this track.</div>'; lyricsContent.innerHTML =
'<div class="fullscreen-lyrics-empty">Lyrics are not available for this track.</div>';
} }
} }
this.updateFullscreenLyricsVisibility(overlay); this.updateFullscreenLyricsVisibility(overlay);

View file

@ -3924,6 +3924,7 @@ input:checked + .slider::before {
/* Reserve space above taskbar / system UI so volume controls stay visible (fixes #322) */ /* Reserve space above taskbar / system UI so volume controls stay visible (fixes #322) */
padding-bottom: max(env(safe-area-inset-bottom), 1.5rem); padding-bottom: max(env(safe-area-inset-bottom), 1.5rem);
--fullscreen-drag-progress: 0; --fullscreen-drag-progress: 0;
--fs-accent-rgb: var(--highlight-rgb); --fs-accent-rgb: var(--highlight-rgb);
} }
@ -3992,7 +3993,7 @@ input:checked + .slider::before {
position: relative; position: relative;
padding: 1rem; padding: 1rem;
overflow: hidden; overflow: hidden;
transform: translateY(var(--fullscreen-drag-offset, 0px)); transform: translateY(var(--fullscreen-drag-offset, 0));
opacity: calc(1 - (var(--fullscreen-drag-progress, 0) * 0.16)); opacity: calc(1 - (var(--fullscreen-drag-progress, 0) * 0.16));
transition: transition:
transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
@ -4262,6 +4263,7 @@ input:checked + .slider::before {
#fullscreen-cover-overlay.controls-idle { #fullscreen-cover-overlay.controls-idle {
cursor: none; cursor: none;
} }
#fullscreen-cover-image { #fullscreen-cover-image {
max-width: 55vw; max-width: 55vw;
max-height: 45vh; max-height: 45vh;
@ -10124,6 +10126,7 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
#fullscreen-cover-overlay .fullscreen-main-view { #fullscreen-cover-overlay .fullscreen-main-view {
--fs-media-column-size: minmax(340px, 430px); --fs-media-column-size: minmax(340px, 430px);
--fs-lyrics-column-size: minmax(520px, 760px); --fs-lyrics-column-size: minmax(520px, 760px);
width: min(1480px, 100%); width: min(1480px, 100%);
height: 100%; height: 100%;
flex: 1; flex: 1;
@ -10166,7 +10169,7 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
aspect-ratio: 1 / 1; aspect-ratio: 1 / 1;
border-radius: 18px; border-radius: 18px;
overflow: hidden; overflow: hidden;
box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26); box-shadow: 0 28px 80px rgb(0, 0, 0, 0.26);
} }
#fullscreen-cover-overlay #fullscreen-cover-image { #fullscreen-cover-overlay #fullscreen-cover-image {
@ -10527,16 +10530,16 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
--lyrics-scroll-padding-top: 18%; --lyrics-scroll-padding-top: 18%;
--lyplus-blur-amount: 0.16em; --lyplus-blur-amount: 0.16em;
--lyplus-blur-amount-near: 0.085em; --lyplus-blur-amount-near: 0.085em;
height: 100%; height: 100%;
width: 100%; width: 100%;
font-family: font-family: 'SF Pro Display', Inter, sans-serif;
'SF Pro Display',
Inter,
sans-serif;
--lyplus-font-size-base: clamp(34px, 3vw, 52px); --lyplus-font-size-base: clamp(34px, 3vw, 52px);
--lyplus-padding-line: 8px; --lyplus-padding-line: 8px;
--lyplus-text-color: rgba(246, 244, 239, 0.08); --lyplus-text-color: rgb(246, 244, 239, 0.08);
--lyplus-active-color: #f6f4ef; --lyplus-active-color: #f6f4ef;
line-height: 1.32; line-height: 1.32;
letter-spacing: -0.04em; letter-spacing: -0.04em;
font-weight: 600; font-weight: 600;
@ -10562,6 +10565,7 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
#fullscreen-cover-overlay.lyrics-hidden .fullscreen-main-view { #fullscreen-cover-overlay.lyrics-hidden .fullscreen-main-view {
--fs-media-column-size: minmax(420px, 760px); --fs-media-column-size: minmax(420px, 760px);
--fs-lyrics-column-size: minmax(0, 0fr); --fs-lyrics-column-size: minmax(0, 0fr);
width: min(760px, 100%); width: min(760px, 100%);
gap: 0; gap: 0;
} }
@ -10608,11 +10612,8 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
width: min(760px, 100%); width: min(760px, 100%);
gap: 1.25rem; gap: 1.25rem;
align-items: stretch; align-items: stretch;
padding: padding: calc(5rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 1.75rem)
calc(5rem + env(safe-area-inset-top)) calc(1.5rem + env(safe-area-inset-bottom));
clamp(1rem, 4vw, 1.75rem)
calc(1.5rem + env(safe-area-inset-bottom))
clamp(1rem, 4vw, 1.75rem);
} }
#fullscreen-cover-overlay .fullscreen-media-column { #fullscreen-cover-overlay .fullscreen-media-column {
@ -10681,11 +10682,7 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
'lyrics lyrics' 'lyrics lyrics'
'controls controls'; 'controls controls';
gap: 1rem 0.9rem; gap: 1rem 0.9rem;
padding: padding: calc(4.45rem + env(safe-area-inset-top)) 0 calc(0.8rem + env(safe-area-inset-bottom));
calc(4.45rem + env(safe-area-inset-top))
0
calc(0.8rem + env(safe-area-inset-bottom))
0;
} }
#fullscreen-cover-overlay .fullscreen-media-column { #fullscreen-cover-overlay .fullscreen-media-column {
@ -10774,9 +10771,10 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
--lyrics-scroll-padding-top: 18%; --lyrics-scroll-padding-top: 18%;
--lyplus-font-size-base: clamp(1.75rem, 7vw, 2.35rem); --lyplus-font-size-base: clamp(1.75rem, 7vw, 2.35rem);
--lyplus-padding-line: 6px; --lyplus-padding-line: 6px;
--lyplus-text-color: rgba(246, 244, 239, 0.16); --lyplus-text-color: rgb(246, 244, 239, 0.16);
--lyplus-blur-amount: 0.16em; --lyplus-blur-amount: 0.16em;
--lyplus-blur-amount-near: 0.08em; --lyplus-blur-amount-near: 0.08em;
line-height: 1.2; line-height: 1.2;
} }
@ -10833,11 +10831,8 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
align-items: center; align-items: center;
justify-items: center; justify-items: center;
gap: 0; gap: 0;
padding: padding: calc(4.45rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 1.4rem)
calc(4.45rem + env(safe-area-inset-top)) calc(0.8rem + env(safe-area-inset-bottom));
clamp(1rem, 4vw, 1.4rem)
calc(0.8rem + env(safe-area-inset-bottom))
clamp(1rem, 4vw, 1.4rem);
height: 100%; height: 100%;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;