From 434cad1541b08e206ecbadb5503100206e3ac801 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Thu, 19 Nov 2026 19:56:42 -0500 Subject: [PATCH] fix(mobile): show download quality as a popup Co-Authored-By: Claude Opus 5.5 --- apps/mobile/contexts/downloads.tsx | 36 ++++++++++++------------------ 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/apps/mobile/contexts/downloads.tsx b/apps/mobile/contexts/downloads.tsx index 7929b64..55206b3 100644 --- a/apps/mobile/contexts/downloads.tsx +++ b/apps/mobile/contexts/downloads.tsx @@ -198,7 +198,8 @@ function optionDetail(option: SizedDownloadOption, songCount: number) { return `${included} of ${songCount} songs, ${option.fallbackCount} in High` } -function DownloadQualitySheet({ +/** Centered popup asking which quality to download a target at. */ +function DownloadQualityPopup({ pending, onClose, onPick, @@ -214,7 +215,7 @@ function DownloadQualitySheet({ return ( @@ -222,14 +223,11 @@ function DownloadQualitySheet({ event.stopPropagation()} > - Download Quality @@ -433,7 +431,7 @@ export function DownloadsProvider({ children }: { children: ReactNode }) { {children} {queue ? : null} - setPending(null)} onPick={handlePick} @@ -445,23 +443,17 @@ export function DownloadsProvider({ children }: { children: ReactNode }) { const styles = StyleSheet.create({ overlay: { flex: 1, - backgroundColor: "rgba(0,0,0,0.45)", - justifyContent: "flex-end", + backgroundColor: "rgba(0,0,0,0.6)", + justifyContent: "center", + alignItems: "center", + padding: 24, }, - sheet: { - borderTopLeftRadius: 16, - borderTopRightRadius: 16, + popup: { + width: "100%", + maxWidth: 420, + borderRadius: 16, borderWidth: 1, - paddingHorizontal: 16, - paddingTop: 8, - paddingBottom: 24, - }, - grabber: { - width: 36, - height: 4, - borderRadius: 2, - alignSelf: "center", - marginBottom: 12, + padding: 16, }, title: { fontSize: 18, fontWeight: "700" }, subtitle: { fontSize: 13, marginBottom: 4 },