added a truncated Text on SongLobbyView for song name

This commit is contained in:
Clément Le Bihan
2023-02-23 23:25:47 +01:00
parent c00a96a987
commit afa173483a
+1 -1
View File
@@ -40,7 +40,7 @@ const SongLobbyView = () => {
<Box style={{ flex: 0.5 }}/>
<Box style={{ flex: 3, padding: 10, flexDirection: 'column', justifyContent: 'space-between' }}>
<Box flex={1}>
<Text bold fontSize='lg'>{songQuery.data!.name}</Text>
<Text bold isTruncated numberOfLines={2} fontSize='lg'>{songQuery.data!.name}</Text>
<Text>
<Translate translationKey='level'
format={(level) => `${level} - ${ chaptersQuery.data!.reduce((a, b) => a + b.difficulty, 0) / chaptersQuery.data!.length }`}