Skip to content

Commit

Permalink
fix: Cards update zoom level
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon-azerty committed Jul 18, 2024
1 parent 04b0fcc commit 295e58c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/app/components/pricingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 295e58c

Please sign in to comment.