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