fix(mobile): add cheveron for artists and truncate (#13)
--------- Co-authored-by: Rem Helper <remhelper@abunchofknowitalls.com> Reviewed-on: https://git.abunchofknowitalls.com/joshuafhiggins/otunes/pulls/13
This commit was merged in pull request #13.
This commit is contained in:
1 parent
4fc04979aa
commit
abbd6bee66
1 file changed
+9
-2
@@ -1,3 +1,4 @@
|
||||
import { Ionicons } from "@expo/vector-icons"
|
||||
import { usePaginatedQuery, useQuery } from "convex/react"
|
||||
import { Stack } from "expo-router"
|
||||
import { useCallback } from "react"
|
||||
@@ -92,7 +93,13 @@ export default function ArtistsScreen() {
|
||||
hasCover={artist.photo != null}
|
||||
style={styles.avatar}
|
||||
/>
|
||||
<Text style={[styles.name, { color: colors.foreground }]}>{artist.name}</Text>
|
||||
<Text
|
||||
style={[styles.name, { color: colors.foreground }]}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{artist.name}
|
||||
</Text>
|
||||
<Ionicons name="chevron-forward" size={16} color={colors.mutedForeground} />
|
||||
</Pressable>
|
||||
</MediaContextMenu>
|
||||
)}
|
||||
@@ -115,5 +122,5 @@ const styles = StyleSheet.create({
|
||||
height: 44,
|
||||
borderRadius: 22,
|
||||
},
|
||||
name: { fontSize: 16, fontWeight: "600" },
|
||||
name: { flex: 1, fontSize: 16, fontWeight: "600" },
|
||||
})
|
||||
Reference in new issue
Block a user