diff --git a/SUMMARIES.md b/SUMMARIES.md index a80554a..80af81d 100644 --- a/SUMMARIES.md +++ b/SUMMARIES.md @@ -205,3 +205,11 @@ backgroundClip: 'border-box', Corrected pop mode behavior: sung (done) words stay bright, not dim. Only future words are dim. Active word is bright + 15% larger. Changed `color: isActive ? bright : dim` → `color: (isActive || done) ? bright : dim` in `KaraokeWord`. + +--- + +### Pop mode — active word shifts down + +**Problem:** Active word is `fontSize * 1.15`; `base` uses `verticalAlign: 'top'`, so the larger word's top aligns with others but extends further down. + +**Fix:** Override to `verticalAlign: 'middle'` in the pop-mode branch so all words (normal and enlarged) center on the same axis. diff --git a/backend/static/index.html b/backend/static/index.html index ad2b35f..9e56a21 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -19,7 +19,7 @@ - + diff --git a/frontend/src/components/LyricsLivePreview.tsx b/frontend/src/components/LyricsLivePreview.tsx index 03a69eb..af2d0ab 100755 --- a/frontend/src/components/LyricsLivePreview.tsx +++ b/frontend/src/components/LyricsLivePreview.tsx @@ -266,6 +266,7 @@ function KaraokeWord({ ref={el => { if (elRef) elRef.current = el }} style={{ ...base, + verticalAlign: 'middle', color: (isActive || done) ? bright : dim, fontSize: isActive ? fontSize * 1.15 : fontSize, transition: 'font-size 0.08s ease, color 0.08s ease',