fix(mobile): match play and shuffle buttons on other downloads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c27206bd2
commit
acf89eed9b
1 file changed
+13
-12
@@ -105,21 +105,21 @@ export default function OtherDownloadsScreen() {
|
|||||||
ListHeaderComponent={
|
ListHeaderComponent={
|
||||||
songs.length > 0 ? (
|
songs.length > 0 ? (
|
||||||
<View style={styles.actions}>
|
<View style={styles.actions}>
|
||||||
<Button
|
|
||||||
title="Play"
|
|
||||||
icon="play"
|
|
||||||
onPress={() => void playInOrder(playableIds, PLAY_ORIGIN)}
|
|
||||||
style={styles.play}
|
|
||||||
/>
|
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel="Shuffle"
|
accessibilityLabel="Shuffle"
|
||||||
hitSlop={8}
|
hitSlop={8}
|
||||||
onPress={() => void playShuffled(playableIds, PLAY_ORIGIN)}
|
onPress={() => void playShuffled(playableIds, PLAY_ORIGIN)}
|
||||||
style={[styles.shuffle, { backgroundColor: colors.card }]}
|
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||||
>
|
>
|
||||||
<Ionicons name="shuffle" size={24} color={colors.foreground} />
|
<Ionicons name="shuffle" size={24} color={colors.foreground} />
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
<Button
|
||||||
|
title="Play"
|
||||||
|
icon="play"
|
||||||
|
onPress={() => void playInOrder(playableIds, PLAY_ORIGIN)}
|
||||||
|
style={styles.playButton}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
@@ -137,14 +137,15 @@ const styles = StyleSheet.create({
|
|||||||
actions: {
|
actions: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
gap: spacing.sm,
|
gap: spacing.sm,
|
||||||
padding: spacing.lg,
|
padding: spacing.lg,
|
||||||
},
|
},
|
||||||
play: { flex: 1 },
|
playButton: { borderRadius: 999, minWidth: 160 },
|
||||||
shuffle: {
|
iconAction: {
|
||||||
width: 48,
|
width: 44,
|
||||||
height: 48,
|
height: 44,
|
||||||
borderRadius: 24,
|
borderRadius: 22,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user