From 295e58cc72efb323b34b30eccbe7867964742adc Mon Sep 17 00:00:00 2001 From: leon3108 Date: Thu, 18 Jul 2024 20:11:46 +0200 Subject: [PATCH] fix: Cards update zoom level --- src/app/components/pricingCard.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/app/components/pricingCard.tsx b/src/app/components/pricingCard.tsx index 6e466a7..3ca65f7 100644 --- a/src/app/components/pricingCard.tsx +++ b/src/app/components/pricingCard.tsx @@ -15,21 +15,19 @@ export default function PricingCard() { function getScaleValue() { const screenWidth = window.innerWidth if (screenWidth > 1600) { - return 1.2 - } else if (screenWidth > 1600) { - return 1 + return 0.7 } else if (screenWidth > 1200) { - return 0.9 + return 0.65 } else if (screenWidth > 1000) { - return 0.8 + return 0.6 } else if (screenWidth > 800) { - return 0.65 - } else if (screenWidth > 700) { return 0.55 + } else if (screenWidth > 700) { + return 0.5 } else if (screenWidth > 500) { - return 0.45 + return 0.4 } - return 0.35 + return 0.3 } function onLoad(spline: Application) {