Skip to content

Commit

Permalink
添加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Mar 26, 2023
1 parent 9d0f03a commit 8f67eed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screens/PlayDetail/Horizontal/Lyric.tsx
Expand Up @@ -26,6 +26,8 @@ const LrcLine = memo(({ line, lineNum, activeLine }: {
const size = lrcFontSize / 10
const lineHeight = setSpText(size) * 1.25

// textBreakStrategy="simple" 用于解决某些设备上字体被截断的问题
// https://stackoverflow.com/a/72822360
return (
<View style={styles.line}>
<Text style={{
Expand Down
2 changes: 2 additions & 0 deletions src/screens/PlayDetail/Vertical/Lyric.tsx
Expand Up @@ -64,6 +64,8 @@ const LrcLine = memo(({ line, lineNum, activeLine }: {
const size = lrcFontSize / 10
const lineHeight = setSpText(size) * 1.25

// textBreakStrategy="simple" 用于解决某些设备上字体被截断的问题
// https://stackoverflow.com/a/72822360
return (
<View style={styles.line}>
<Text style={{
Expand Down

0 comments on commit 8f67eed

Please sign in to comment.