feat: set audio player cover img aspect ratio 1:1

This commit is contained in:
2024-03-24 02:32:38 +07:00
parent 2b29ceacd0
commit 254df638c1
3 changed files with 9 additions and 7 deletions
+7 -5
View File
@@ -60,11 +60,13 @@ const AudioPlayerView = React.memo(({ onClose }: { onClose: () => void }) => {
<Box className="flex flex-col items-center justify-center p-8 flex-1 overflow-hidden">
{mediaTags?.picture ? (
<Image
source={{ uri: mediaTags.picture }}
style={cn("w-full flex-1 max-h-[256px] mb-8")}
resizeMode="contain"
/>
<Box className="aspect-square flex-1 max-h-[400px] mb-8">
<Image
source={{ uri: mediaTags.picture }}
style={cn("w-full h-full")}
resizeMode="cover"
/>
</Box>
) : null}
<Text className="text-white text-lg sm:text-xl">Now Playing</Text>