fix: adjust SVG height calculation for responsive design in HomeScreen

This commit is contained in:
daniel31x13
2025-11-01 11:28:31 -04:00
parent 98c1a1f035
commit 6b988193b3
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ export default function HomeScreen() {
<Svg
viewBox="0 0 1440 320"
width={Dimensions.get("screen").width}
height={100}
height={Dimensions.get("screen").width * (320 / 1440) + 2}
>
<Path
fill={rawTheme[colorScheme as ThemeName]["base-100"]}

View File

@@ -97,7 +97,7 @@ export default function HomeScreen() {
<Svg
viewBox="0 0 1440 320"
width={Dimensions.get("screen").width}
height={100}
height={Dimensions.get("screen").width * (320 / 1440) + 2}
>
<Path
fill={rawTheme[colorScheme as ThemeName]["base-100"]}