From 386d6511d764101f4141be41069b6e31f20bc9b0 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 19 Apr 2026 20:15:15 +0200 Subject: [PATCH] fix video size --- mobile/src/components/ProductCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/components/ProductCard.tsx b/mobile/src/components/ProductCard.tsx index 3b66961e..158d2435 100644 --- a/mobile/src/components/ProductCard.tsx +++ b/mobile/src/components/ProductCard.tsx @@ -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), }, });