Skip to content

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

fix(mobile): fix paddings on android

daniel31x13032359a35783
diff --git a/apps/mobile/app/(tabs)/_layout.tsx b/apps/mobile/app/(tabs)/_layout.tsx
index 96132d48..ce049778 100644
--- a/apps/mobile/app/(tabs)/_layout.tsx
+++ b/apps/mobile/app/(tabs)/_layout.tsx
@@ -22,9 +22,11 @@ export default function TabLayout() {
position: "absolute",
borderTopWidth: 0,
elevation: 0,
+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-200"],
},
default: {
borderTopWidth: 0,
+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-200"],
elevation: 0,
},
}),
diff --git a/apps/mobile/app/(tabs)/dashboard/_layout.tsx b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
index 5b03f6e1..30e0b0ac 100644
--- a/apps/mobile/app/(tabs)/dashboard/_layout.tsx
+++ b/apps/mobile/app/(tabs)/dashboard/_layout.tsx
@@ -2,7 +2,7 @@ import { rawTheme, ThemeName } from "@/lib/colors";
import { Stack, useRouter } from "expo-router";
import { Plus } from "lucide-react-native";
import { useColorScheme } from "nativewind";
-import { TouchableOpacity } from "react-native";
+import { Platform, TouchableOpacity } from "react-native";
import { SheetManager } from "react-native-actions-sheet";
import * as DropdownMenu from "zeego/dropdown-menu";
@@ -14,7 +14,8 @@ export default function RootLayout() {
<Stack
screenOptions={{
headerLargeTitle: true,
- headerTransparent: true,
+ headerTransparent: Platform.OS === "ios" ? true : false,
+ headerShadowVisible: false,
headerBlurEffect:
colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",
headerTintColor: colorScheme === "dark" ? "white" : "black",
diff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsx
index 19d9a17a..714c24e6 100644
--- a/apps/mobile/app/(tabs)/links/_layout.tsx
+++ b/apps/mobile/app/(tabs)/links/_layout.tsx
@@ -1,6 +1,7 @@
import { Stack, useRouter } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
+import { Platform } from "react-native";
export default function RootLayout() {
const router = useRouter();
@@ -11,7 +12,8 @@ export default function RootLayout() {
screenOptions={{
headerTitle: "Links",
headerLargeTitle: true,
- headerTransparent: true,
+ headerTransparent: Platform.OS === "ios" ? true : false,
+ headerShadowVisible: false,
headerBlurEffect:
colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",
headerTintColor: colorScheme === "dark" ? "white" : "black",
diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsx
index 4f962610..d5195cdd 100644
--- a/apps/mobile/app/(tabs)/settings/_layout.tsx
+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx
@@ -1,6 +1,7 @@
import { Stack } from "expo-router";
import { useColorScheme } from "nativewind";
import { rawTheme, ThemeName } from "@/lib/colors";
+import { Platform } from "react-native";
export default function RootLayout() {
const { colorScheme } = useColorScheme();
@@ -10,7 +11,8 @@ export default function RootLayout() {
screenOptions={{
headerTitle: "Settings",
headerLargeTitle: true,
- headerTransparent: true,
+ headerTransparent: Platform.OS === "ios" ? true : false,
+ headerShadowVisible: false,
headerBlurEffect:
colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",
headerTintColor: colorScheme === "dark" ? "white" : "black",
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx
index 431090dd..2bb7d283 100644
--- a/apps/mobile/app/_layout.tsx
+++ b/apps/mobile/app/_layout.tsx
@@ -42,6 +42,8 @@ export default function RootLayout() {
{!isLoading && (
<Stack
screenOptions={{
+ navigationBarColor:
+ rawTheme[colorScheme as ThemeName]["base-200"],
headerShown: false,
headerStyle: {
backgroundColor:
diff --git a/apps/mobile/components/LinkListing.tsx b/apps/mobile/components/LinkListing.tsx
index ec2281e7..a3d4c03c 100644
--- a/apps/mobile/components/LinkListing.tsx
+++ b/apps/mobile/components/LinkListing.tsx
@@ -52,6 +52,7 @@ const LinkListing = ({ link, dashboard }: Props) => {
Platform.OS !== "android" && "active:bg-base-200/50",
dashboard && "rounded-xl"
)}
+ onLongPress={() => {}}
onPress={() => router.push(`/links/${link.id}`)}
android_ripple={{ color: "#ddd", borderless: false }}
>