From 1762f9ff5b2499b9a302c4ed812d03a7af960392 Mon Sep 17 00:00:00 2001 From: Rem Helper Date: Mon, 6 Jul 2026 01:38:14 +0000 Subject: [PATCH] Fixed center again --- apps/mobile/app/(app)/(tabs)/home/album/[id].tsx | 10 +++------- apps/mobile/app/(app)/(tabs)/home/artist/[id].tsx | 10 +++------- apps/mobile/app/(app)/(tabs)/home/playlist/[id].tsx | 9 ++------- .../app/(app)/(tabs)/home/playlist/favorites.tsx | 7 ++----- 4 files changed, 10 insertions(+), 26 deletions(-) diff --git a/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx b/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx index b764fd6..4cc9ce2 100644 --- a/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx +++ b/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx @@ -119,7 +119,7 @@ export default function AlbumScreen() { void toggleAlbumFavorite(album.id)} hitSlop={8} - style={[styles.iconAction, styles.leftAction, { backgroundColor: colors.muted }]} + style={[styles.iconAction, { backgroundColor: colors.muted }]} > void playAlbumShuffled(album.id)} - style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]} + style={[styles.iconAction, { backgroundColor: colors.muted }]} > @@ -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", diff --git a/apps/mobile/app/(app)/(tabs)/home/artist/[id].tsx b/apps/mobile/app/(app)/(tabs)/home/artist/[id].tsx index 89a7164..71b41d2 100644 --- a/apps/mobile/app/(app)/(tabs)/home/artist/[id].tsx +++ b/apps/mobile/app/(app)/(tabs)/home/artist/[id].tsx @@ -95,7 +95,7 @@ export default function ArtistScreen() { void toggleArtistFavorite(data.artist.id)} hitSlop={8} - style={[styles.iconAction, styles.leftAction, { backgroundColor: colors.muted }]} + style={[styles.iconAction, { backgroundColor: colors.muted }]} > void playArtistShuffled(data.artist.id)} - style={[styles.iconAction, styles.rightAction, { backgroundColor: colors.muted }]} + style={[styles.iconAction, { backgroundColor: colors.muted }]} > @@ -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" }, }) diff --git a/apps/mobile/app/(app)/(tabs)/home/playlist/[id].tsx b/apps/mobile/app/(app)/(tabs)/home/playlist/[id].tsx index abc972b..8fc57c5 100644 --- a/apps/mobile/app/(app)/(tabs)/home/playlist/[id].tsx +++ b/apps/mobile/app/(app)/(tabs)/home/playlist/[id].tsx @@ -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 }]} > @@ -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 }, }) diff --git a/apps/mobile/app/(app)/(tabs)/home/playlist/favorites.tsx b/apps/mobile/app/(app)/(tabs)/home/playlist/favorites.tsx index d7972fb..223a444 100644 --- a/apps/mobile/app/(app)/(tabs)/home/playlist/favorites.tsx +++ b/apps/mobile/app/(app)/(tabs)/home/playlist/favorites.tsx @@ -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 }]} > @@ -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 }, })