chore: modify video size

This commit is contained in:
2026-04-19 18:20:56 +02:00
parent 8fc1335588
commit d851f09188
2 changed files with 17 additions and 31 deletions
+11 -15
View File
@@ -537,31 +537,27 @@ const styles = StyleSheet.create({
}, },
videoModalOverlay: { videoModalOverlay: {
flex: 1, flex: 1,
backgroundColor: "rgba(0,0,0,0.95)", backgroundColor: "#000",
justifyContent: "center", padding: 0,
alignItems: "center",
padding: 20,
}, },
videoModalContent: { videoModalContent: {
flex: 1,
width: "100%", width: "100%",
maxWidth: 500, backgroundColor: "#000",
borderRadius: 12,
overflow: "hidden", overflow: "hidden",
position: "relative", position: "relative",
}, },
videoCloseBtn: { videoCloseBtn: {
position: "absolute", position: "absolute",
top: 15, top: 16,
right: 15, right: 16,
width: 40, width: 44,
height: 40, height: 44,
borderRadius: 20, borderRadius: 22,
backgroundColor: "rgba(255,255,255,0.1)", backgroundColor: "rgba(239,68,68,0.85)",
borderWidth: 2,
borderColor: "rgba(255,255,255,0.3)",
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
zIndex: 10, zIndex: 10,
}, },
videoPlayer: { width: "100%", height: 300 }, videoPlayer: { width: "100%", flex: 1 },
}); });
@@ -173,7 +173,7 @@ export default function ProductDetailScreen() {
overflow: "hidden", overflow: "hidden",
}, },
imageSectionOut: { opacity: 0.4 }, imageSectionOut: { opacity: 0.4 },
image: { width: "100%", height: "100%", padding: spacing.l }, image: { width: "100%", height: "100%" },
imagePlaceholder: { imagePlaceholder: {
width: "100%", width: "100%",
height: "100%", height: "100%",
@@ -402,24 +402,14 @@ export default function ProductDetailScreen() {
}, },
videoOverlay: { videoOverlay: {
flex: 1, flex: 1,
backgroundColor: "rgba(0,0,0,0.9)", backgroundColor: "#000",
justifyContent: "center", padding: 0,
alignItems: "center",
padding: 20,
}, },
videoContent: { videoContent: {
flex: 1,
width: "100%", width: "100%",
maxWidth: 500, backgroundColor: "#000",
backgroundColor: colors.bgSecondary,
borderRadius: 20,
overflow: "hidden", overflow: "hidden",
borderWidth: 1,
borderColor: overlayBorder,
shadowColor: catColor,
shadowOffset: { width: 0, height: 0 },
shadowOpacity: 0.15,
shadowRadius: 30,
elevation: 20,
}, },
videoTopBar: { videoTopBar: {
flexDirection: "row", flexDirection: "row",
@@ -449,7 +439,7 @@ export default function ProductDetailScreen() {
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
}, },
videoPlayer: { width: "100%", height: 300 }, videoPlayer: { width: "100%", flex: 1 },
}), }),
[colors, isDark, catColor], [colors, isDark, catColor],
); );