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 },