Enhance lyrics display: add transition effects, manage opacity, and improve styling for empty state

This commit is contained in:
2025-08-06 15:43:45 -04:00
parent d501272870
commit fbd342c6a7
2 changed files with 16 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ export function Player() {
style={{ width: `${(elapsedTime / trackDuration) * 100}%` }}
/>
</div>
<div className="lrc-text">
<div className={`lrc-text ${lyrics.length === 0 ? 'empty' : ''}`}>
{lyrics.map((lyricObj, index) => (
<p
key={index}
@@ -283,6 +283,7 @@ export function Player() {
</p>
))}
</div>
<div className="music-control">
<div
className="music-control__play"