From acddfa011c5ffdad2a668b6d712410c6bbe88b82 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Fri, 29 Mar 2024 14:07:32 +0100 Subject: [PATCH] Fix size of map on mobile devices --- resources/js/Pages/IkeaRoot.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index 426b068..23000d1 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -53,8 +53,8 @@ const itemCode = ref(null); const googlemapbox = ref(null); const googlemapchart = ref(null); -const gChartWidth = computed(() => screenWidth.value > 420 ? 400 : (screenWidth.value - 20 - 5)); -const gChartHeight = computed(() => gChartWidth.value == 400 ? 250 : (screenWidth.value *65/100) - 28); +const gChartWidth = computed(() => screenWidth.value > 420 ? 400 : (screenWidth.value - 30 - 5)); +const gChartHeight = computed(() => gChartWidth.value == 400 ? 250 : (screenWidth.value *67/100) - 28); console.log('GCH',screenWidth.value, screenHeight.value, gChartWidth.value,gChartHeight.value); const options = {