This commit is contained in:
thororen1234 2025-10-12 14:32:32 -04:00
parent f498416967
commit f5cbd0f2e8
No known key found for this signature in database

View file

@ -7,7 +7,6 @@
import { BaseText } from "@components/BaseText";
import { ModalContent, ModalHeader, ModalProps, ModalRoot } from "@utils/modal";
import { settings } from "../../../settings";
import { TidalStore, Track } from "../../TidalStore";
import { cl, NoteSvg, scrollClasses, useLyrics } from "./util";
@ -61,22 +60,7 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) {
>
{formatTime(line.time)}
</span>
{(
line.words.map((word, j) => {
const wordActive = position / 1000 >= word.time && position / 1000 < word.endTime;
return (
<span
key={j}
className={wordActive ? cl("word-active") : cl("word")}
style={{ opacity: wordActive ? 1 : 0.5, marginRight: 2 }}
>
{word.word}
</span>
);
})
) : (
line.text || NoteSvg(cl("modal-note"))
)}
{line.text || NoteSvg(cl("modal-note"))}
</BaseText>
))
) : (