fix video size

This commit is contained in:
2026-04-19 20:15:15 +02:00
parent fe79691095
commit 386d6511d7
+2 -2
View File
@@ -26,7 +26,7 @@ import { useTheme } from "../context/ThemeContext";
import { API_BASE_URL } from "../api/client";
import { useCart } from "../context/CartContext";
const { width: SCREEN_WIDTH } = Dimensions.get("window");
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get("window");
const CARD_WIDTH = SCREEN_WIDTH - 48;
interface ProductCardProps {
@@ -562,6 +562,6 @@ const styles = StyleSheet.create({
},
videoPlayer: {
width: "100%",
height: Math.round((SCREEN_WIDTH - 10) * 9 / 16),
height: Math.round(SCREEN_HEIGHT * 0.65),
},
});