Fixed center again
This commit is contained in:
4 files changed
+10
-26
No files matched your search
@@ -119,7 +119,7 @@ export default function AlbumScreen() {
|
||||
<Pressable
|
||||
onPress={() => void toggleAlbumFavorite(album.id)}
|
||||
hitSlop={8}
|
||||
style={[styles.iconAction, styles.leftAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons
|
||||
name={isAlbumFavorite(album.id) ? "star" : "star-outline"}
|
||||
@@ -138,7 +138,7 @@ export default function AlbumScreen() {
|
||||
accessibilityLabel="Shuffle"
|
||||
hitSlop={8}
|
||||
onPress={() => void playAlbumShuffled(album.id)}
|
||||
style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons name="shuffle" size={22} color={colors.foreground} />
|
||||
</Pressable>
|
||||
@@ -206,21 +206,17 @@ const styles = StyleSheet.create({
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
alignSelf: "stretch",
|
||||
minHeight: 44,
|
||||
gap: spacing.sm,
|
||||
marginTop: spacing.sm,
|
||||
},
|
||||
playButton: { borderRadius: 999, minWidth: 160 },
|
||||
iconAction: {
|
||||
position: "absolute",
|
||||
width: 44,
|
||||
height: 44,
|
||||
borderRadius: 22,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
leftAction: { left: 0 },
|
||||
rightAction: { right: 0 },
|
||||
trackRow: {
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
|
||||
@@ -95,7 +95,7 @@ export default function ArtistScreen() {
|
||||
<Pressable
|
||||
onPress={() => void toggleArtistFavorite(data.artist.id)}
|
||||
hitSlop={8}
|
||||
style={[styles.iconAction, styles.leftAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons
|
||||
name={isArtistFavorite(data.artist.id) ? "star" : "star-outline"}
|
||||
@@ -114,7 +114,7 @@ export default function ArtistScreen() {
|
||||
accessibilityLabel="Shuffle"
|
||||
hitSlop={8}
|
||||
onPress={() => void playArtistShuffled(data.artist.id)}
|
||||
style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons name="shuffle" size={22} color={colors.foreground} />
|
||||
</Pressable>
|
||||
@@ -142,21 +142,17 @@ const styles = StyleSheet.create({
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
alignSelf: "stretch",
|
||||
minHeight: 44,
|
||||
gap: spacing.sm,
|
||||
marginTop: spacing.sm,
|
||||
},
|
||||
playButton: { borderRadius: 999, minWidth: 160 },
|
||||
iconAction: {
|
||||
position: "absolute",
|
||||
width: 44,
|
||||
height: 44,
|
||||
borderRadius: 22,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
leftAction: { left: 0 },
|
||||
rightAction: { right: 0 },
|
||||
section: { padding: spacing.lg, gap: spacing.md },
|
||||
sectionTitle: { fontSize: 20, fontWeight: "700" },
|
||||
})
|
||||
@@ -169,7 +169,6 @@ export default function PlaylistScreen() {
|
||||
onPress={() => void handleSubscribeToggle()}
|
||||
style={[
|
||||
styles.iconAction,
|
||||
styles.leftAction,
|
||||
{
|
||||
backgroundColor: playlist.isSubscribed
|
||||
? colors.muted
|
||||
@@ -199,7 +198,7 @@ export default function PlaylistScreen() {
|
||||
accessibilityLabel="Shuffle"
|
||||
hitSlop={8}
|
||||
onPress={() => playlist.id && void playPlaylistShuffled(playlist.id)}
|
||||
style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons name="shuffle" size={22} color={colors.foreground} />
|
||||
</Pressable>
|
||||
@@ -258,19 +257,15 @@ const styles = StyleSheet.create({
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
alignSelf: "stretch",
|
||||
minHeight: 44,
|
||||
gap: spacing.sm,
|
||||
marginTop: spacing.sm,
|
||||
},
|
||||
playButton: { borderRadius: 999, minWidth: 160 },
|
||||
iconAction: {
|
||||
position: "absolute",
|
||||
width: 44,
|
||||
height: 44,
|
||||
borderRadius: 22,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
leftAction: { left: 0 },
|
||||
rightAction: { right: 0 },
|
||||
})
|
||||
@@ -101,7 +101,7 @@ export default function FavoritesScreen() {
|
||||
accessibilityLabel="Shuffle"
|
||||
hitSlop={8}
|
||||
onPress={() => void playShuffled(songIds)}
|
||||
style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]}
|
||||
style={[styles.iconAction, { backgroundColor: colors.muted }]}
|
||||
>
|
||||
<Ionicons name="shuffle" size={22} color={colors.foreground} />
|
||||
</Pressable>
|
||||
@@ -147,18 +147,15 @@ const styles = StyleSheet.create({
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
alignSelf: "stretch",
|
||||
minHeight: 44,
|
||||
gap: spacing.sm,
|
||||
marginTop: spacing.sm,
|
||||
},
|
||||
playButton: { borderRadius: 999, minWidth: 160 },
|
||||
iconAction: {
|
||||
position: "absolute",
|
||||
width: 44,
|
||||
height: 44,
|
||||
borderRadius: 22,
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
rightAction: { right: 0 },
|
||||
})
|
||||
Reference in new issue
Block a user