From f9f9b8acb699abcf4f137f9b4cb24127939aa303 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Thu, 19 Nov 2026 19:58:35 -0500 Subject: [PATCH] fix(mobile): move the download button beside Play Co-Authored-By: Claude Opus 5.5 --- .../app/(app)/(tabs)/home/album/[id].tsx | 77 ++++++++++--------- .../app/(app)/(tabs)/home/playlist/[id].tsx | 65 ++++++++-------- .../(app)/(tabs)/home/playlist/favorites.tsx | 34 ++++---- ...ton.tsx => collection-download-button.tsx} | 24 +++++- 4 files changed, 108 insertions(+), 92 deletions(-) rename apps/mobile/components/{download-header-button.tsx => collection-download-button.tsx} (91%) diff --git a/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx b/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx index 09c4f05..d560cd2 100644 --- a/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx +++ b/apps/mobile/app/(app)/(tabs)/home/album/[id].tsx @@ -23,9 +23,9 @@ import { } from "@/components/collection-list" import { AudioFormatBadge } from "@/components/audio-format-badge" import { - DownloadHeaderButton, + CollectionDownloadButton, DownloadedQuality, -} from "@/components/download-header-button" +} from "@/components/collection-download-button" import { useOpenedFromDownloads } from "@/lib/downloads-navigation" import { downloadsQueueOrigin } from "@otunes/convex/download-quality" import { @@ -226,41 +226,35 @@ export default function AlbumScreen() { } : {}), headerRight: () => ( - - - { - if (action === "download") { - void requestDownload(downloadTarget) - } else if (action === "remove-download") { - void removeDownload(downloadTarget) - } else { - void handleAlbumDetailAction( - album.id as Id<"albums">, - songIds, - action, - album.artist.id as Id<"artists"> - ) - } - }} - > - - - - - + { + if (action === "download") { + void requestDownload(downloadTarget) + } else if (action === "remove-download") { + void removeDownload(downloadTarget) + } else { + void handleAlbumDetailAction( + album.id as Id<"albums">, + songIds, + action, + album.artist.id as Id<"artists"> + ) + } + }} + > + + + + ), }} /> @@ -321,6 +315,14 @@ export default function AlbumScreen() { color={favorited ? palette.accent : palette.foreground} /> +