From fe79691095ceed1caa83bcb6e9f4973c1afd6a39 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 19 Apr 2026 19:51:25 +0200 Subject: [PATCH] fix video size --- mobile/src/screens/client/ProductDetailScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/screens/client/ProductDetailScreen.tsx b/mobile/src/screens/client/ProductDetailScreen.tsx index 05243378..14367161 100644 --- a/mobile/src/screens/client/ProductDetailScreen.tsx +++ b/mobile/src/screens/client/ProductDetailScreen.tsx @@ -25,7 +25,7 @@ import { spacing, borderRadius, fontSize, fontWeight } from "../../theme"; import { API_BASE_URL } from "../../api/client"; type Route = RouteProp; -const { width: SCREEN_WIDTH } = Dimensions.get("window"); +const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get("window"); export default function ProductDetailScreen() { const { params } = useRoute(); @@ -442,7 +442,7 @@ export default function ProductDetailScreen() { }, videoPlayer: { width: "100%", - height: Math.round((SCREEN_WIDTH - 10) * 9 / 16), + height: Math.round(SCREEN_HEIGHT * 0.65), }, }), [colors, isDark, catColor],