fix(synced-lyrics): Fix reverse direction of synced lyrics for persian or other rtl languages (#2940)

Add direction auto to synced lyrics to fix reverse direction in rtl languages
This commit is contained in:
Seyed Danial Movahed
2025-02-02 18:25:07 +03:30
committed by GitHub
parent 4d51f1a412
commit aa48944212

View File

@ -50,7 +50,7 @@ export const SyncedLine = ({ line }: SyncedLineProps) => {
_ytAPI?.seekTo(line.timeInMs / 1000);
}}
>
<div class="text-lyrics description ytmusic-description-shelf-renderer">
<div dir="auto" class="text-lyrics description ytmusic-description-shelf-renderer">
<yt-formatted-string
text={{
runs: [{ text: config()?.showTimeCodes ? `[${line.time}] ` : '' }],