Skip to content

Commit

Permalink
feat(jukebox): highlight lyrics lines in editor that has no translation
Browse files Browse the repository at this point in the history
  • Loading branch information
blueset authored Sep 5, 2024
1 parent 56b1ec1 commit ab574f3
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,27 @@ export default function EditTranslations({ lyrics, setLyrics }: Props) {
<Typography
variant="body2"
display="inline"
color="textSecondary"
color={
v.content.trim() && !translatedLines[idx]
? "secondary.light"
: "textSecondary"
}
lang="ja"
>
{v.content}
</Typography>{" "}
{v.content}
</Typography>
<Typography variant="body2" display="inline" color="textSecondary">
{" ✲ "}
</Typography>
<Typography
variant="body2"
display="inline"
lang={currentLanguage || "zh"}
color={
translatedLines[idx] && !v.content.trim()
? "secondary.light"
: "textSecondary"
}
>
{translatedLines[idx]}
</Typography>
Expand Down

0 comments on commit ab574f3

Please sign in to comment.