Changed pop to keep active word centered vertically.

This commit is contained in:
translator committed 2026-03-06 11:53:23 +09:00
1 parent 80a226fc3d
commit 6f0ca67979
3 files changed
+10 -1

No files matched your search

+8
View File
@@ -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.
+1 -1
View File
@@ -19,7 +19,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="StemEngine" />
<link rel="apple-touch-icon" href="/icon.svg" />
<script type="module" crossorigin src="/assets/index-BRW-p_r8.js"></script>
<script type="module" crossorigin src="/assets/index-49yhwRUo.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DBHjVSaY.css">
</head>
<body>
@@ -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',