Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix: adjust SVG height calculation for responsive design in HomeScreen

daniel31x136b988193b3c7
diff --git a/apps/mobile/app/index.tsx b/apps/mobile/app/index.tsx
index 76482cee..ad647643 100644
--- a/apps/mobile/app/index.tsx
+++ b/apps/mobile/app/index.tsx
@@ -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"]}
diff --git a/apps/mobile/app/login.tsx b/apps/mobile/app/login.tsx
index 28be739d..e450babd 100644
--- a/apps/mobile/app/login.tsx
+++ b/apps/mobile/app/login.tsx
@@ -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"]}