fix(lyrics): resolve scrolling in ExpandedPlayer full screen view

- Add min-height: 0 and height: 100% to .right-section for proper
  flex constraint cascade
- Add overflow: hidden to .lyrics-container for mask effect
- Add max-height: 100% and overflow-y: auto to .lyrics-lines
- Fix reset effect to track content changes vs array reference
- Remove debug console.logs
This commit is contained in:
vicrodh committed 2026-01-11 01:50:08 -06:00
1 parent fd178b8643
commit 0ca7d50615
2 files changed
+8 -27

No files matched your search

+5 -2
View File
@@ -93,9 +93,7 @@
// Ensure lyrics updates run when ExpandedPlayer is open with synced lyrics
$effect(() => {
console.log('[ExpandedPlayer] Effect check:', { isOpen, isPlaying, lyricsSynced, lyricsActiveIndex, hasLyrics: lyricsLines.length > 0 });
if (isOpen && isPlaying && lyricsSynced) {
console.log('[ExpandedPlayer] Starting lyrics updates');
startActiveLineUpdates();
}
});
@@ -665,17 +663,20 @@
.right-section {
flex: 1;
min-width: 0;
min-height: 0; /* Critical for nested flex to respect max-height */
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
padding-right: 40px;
height: 100%; /* Explicit height for proper constraint cascade */
}
.lyrics-container {
flex: 1;
min-height: 0; /* Critical for flex child to allow shrinking */
max-height: calc(100vh - 160px);
overflow: hidden; /* Clip content for mask effect */
mask-image: linear-gradient(
to bottom,
transparent 0%,
@@ -699,6 +700,8 @@
--bg-tertiary: rgba(255, 255, 255, 0.08);
padding: 0;
height: 100%;
max-height: 100%; /* Constrain to parent height */
overflow-y: auto; /* Ensure scrolling works */
}
.lyrics-state {