From 24a37e3368903c331e6a2ee517c2962ba316076a Mon Sep 17 00:00:00 2001 From: angel Date: Fri, 20 Jun 2025 00:48:10 +0000 Subject: [PATCH] feat: enhance FullScreenPlayer layout and responsiveness with improved styling for controls and lyrics display --- app/components/FullScreenPlayer.tsx | 58 +++++++++++++++-------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/app/components/FullScreenPlayer.tsx b/app/components/FullScreenPlayer.tsx index 869e871..b4a468a 100644 --- a/app/components/FullScreenPlayer.tsx +++ b/app/components/FullScreenPlayer.tsx @@ -311,29 +311,33 @@ export const FullScreenPlayer: React.FC = ({ isOpen, onCl {/* Main Content */}
{/* Left Side - Album Art and Controls */} -
+
0 + ? 'flex-1 justify-center lg:justify-start' + : 'flex-1 justify-center' + }`}> {/* Album Art */} -
+
{currentTrack.album}
{/* Track Info */} -
-

+
+

{currentTrack.name}

-

{currentTrack.artist}

+

{currentTrack.artist}

{/* Progress */} -
+
= ({ isOpen, onCl
{/* Controls */} -
+
- {/* Volume and Queue */} -
+ {/* Volume and Lyrics Toggle */} +
@@ -404,13 +408,13 @@ export const FullScreenPlayer: React.FC = ({ isOpen, onCl }`} title={showLyrics ? 'Hide Lyrics' : 'Show Lyrics'} > - + )} {showVolumeSlider && (
setShowVolumeSlider(false)} > = ({ isOpen, onCl {/* Right Side - Lyrics */} {showLyrics && lyrics.length > 0 && ( -
+
- -
+ +
{lyrics.map((line, index) => (
handleLyricClick(line.time)} - className={`text-sm lg:text-base leading-relaxed transition-all duration-300 break-words cursor-pointer hover:text-foreground hover:scale-102 ${ + className={`text-sm sm:text-base lg:text-base leading-relaxed transition-all duration-300 break-words cursor-pointer hover:text-foreground hover:scale-102 ${ index === currentLyricIndex - ? 'text-foreground font-semibold text-lg lg:text-xl scale-105' + ? 'text-foreground font-semibold text-base sm:text-lg lg:text-xl scale-105' : index < currentLyricIndex ? 'text-foreground/60' : 'text-foreground/40' @@ -448,8 +452,8 @@ export const FullScreenPlayer: React.FC = ({ isOpen, onCl wordWrap: 'break-word', overflowWrap: 'break-word', hyphens: 'auto', - paddingBottom: '8px', - paddingLeft: '9px' + paddingBottom: '6px', + paddingLeft: '8px' }} title={`Click to jump to ${formatTime(line.time)}`} >