chore: modify video size
This commit is contained in:
@@ -402,13 +402,14 @@ export default function ProductDetailScreen() {
|
||||
},
|
||||
videoOverlay: {
|
||||
flex: 1,
|
||||
backgroundColor: "#000",
|
||||
padding: 0,
|
||||
backgroundColor: "rgba(0,0,0,0.92)",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
},
|
||||
videoContent: {
|
||||
flex: 1,
|
||||
width: "100%",
|
||||
width: SCREEN_WIDTH - 10,
|
||||
backgroundColor: "#000",
|
||||
borderRadius: 12,
|
||||
overflow: "hidden",
|
||||
},
|
||||
videoTopBar: {
|
||||
@@ -439,7 +440,10 @@ export default function ProductDetailScreen() {
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
},
|
||||
videoPlayer: { width: "100%", flex: 1 },
|
||||
videoPlayer: {
|
||||
width: "100%",
|
||||
height: Math.round((SCREEN_WIDTH - 10) * 9 / 16),
|
||||
},
|
||||
}),
|
||||
[colors, isDark, catColor],
|
||||
);
|
||||
@@ -489,7 +493,7 @@ export default function ProductDetailScreen() {
|
||||
<Image
|
||||
source={{ uri: imageUri }}
|
||||
style={styles.image}
|
||||
resizeMode="contain"
|
||||
resizeMode="cover"
|
||||
/>
|
||||
) : (
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user