修复播放栏标题过长不会自动隐藏的问题

This commit is contained in:
lyswhut 2021-12-23 16:03:53 +08:00
parent 1b6263bc19
commit e9c45421fc
2 changed files with 4 additions and 4 deletions

View File

@ -43,8 +43,8 @@ export default () => {
}, [downloadFileName, playMusicInfo])
// console.log(playMusicInfo)
return (
<TouchableOpacity onLongPress={handleLongPress} onPress={handlePress} activeOpacity={0.7} >
<Text style={{ width: '100%', fontSize: 14, color: theme.normal }} numberOfLines={1}>{title}</Text>
<TouchableOpacity style={{ width: '100%' }} onLongPress={handleLongPress} onPress={handlePress} activeOpacity={0.7} >
<Text style={{ fontSize: 14, color: theme.normal }} numberOfLines={1}>{title}</Text>
</TouchableOpacity>
)
}

View File

@ -30,8 +30,8 @@ export default () => {
}, [downloadFileName, playMusicInfo])
// console.log(playMusicInfo)
return (
<TouchableOpacity onPress={handlePress} activeOpacity={0.7} >
<Text style={{ width: '100%', fontSize: 14, color: theme.normal }} numberOfLines={1}>{title}</Text>
<TouchableOpacity style={{ width: '100%' }} onPress={handlePress} activeOpacity={0.7} >
<Text style={{ fontSize: 14, color: theme.normal }} numberOfLines={1}>{title}</Text>
</TouchableOpacity>
)
}