mirror of
https://github.com/jeffvli/feishin.git
synced 2026-08-08 13:23:16 +02:00
prevent initially rendering non-sync romaji generated lyrics on karaoke lyrics
This commit is contained in:
@@ -193,11 +193,13 @@ export const KaraokeLyricLine = memo(
|
||||
[fontSize, alignment],
|
||||
);
|
||||
|
||||
const hasSyncedRomaji = romajiCueLines != null;
|
||||
const hasSyncedRomajiOverlay = romajiCueLines !== undefined;
|
||||
const hasSyncedPronunciation = hasSyncedOverlayCueLines(pronunciationCueLines);
|
||||
const hasSyncedTranslation = hasSyncedOverlayCueLines(translationCueLines);
|
||||
const pronunciationFallbackText =
|
||||
!hasSyncedRomaji && !hasSyncedPronunciation ? (pronunciationText ?? romajiText) : null;
|
||||
!hasSyncedRomajiOverlay && !hasSyncedPronunciation
|
||||
? (pronunciationText ?? romajiText)
|
||||
: null;
|
||||
|
||||
return (
|
||||
<Box
|
||||
|
||||
Reference in New Issue
Block a user