⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
feat: update header styles and improve layout for iOS version compatibility
daniel31x135d470621a503
diff --git a/apps/mobile/app/(tabs)/collections/_layout.tsx b/apps/mobile/app/(tabs)/collections/_layout.tsxindex 6b5c1139..6a727183 100644--- a/apps/mobile/app/(tabs)/collections/_layout.tsx+++ b/apps/mobile/app/(tabs)/collections/_layout.tsx@@ -16,7 +16,6 @@ export default function Layout() {headerLargeTitle: true,headerTintColor: colorScheme === "dark" ? "white" : "black",headerTransparent: Platform.OS === "ios",- headerShadowVisible: false,headerSearchBarOptions: {placeholder: "Search Collections",autoCapitalize: "none",@@ -30,22 +29,19 @@ export default function Layout() {},headerIconColor: colorScheme === "dark" ? "white" : "black",},- headerLargeTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },+ headerShadowVisible: false,+ headerBlurEffect:+ colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",headerLargeStyle: {+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],+ },+ headerStyle: {backgroundColor:Platform.OS === "ios"? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],- },- headerStyle: {- backgroundColor: isIOS26Plus- ? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],+ : colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",},}}/>diff --git a/apps/mobile/app/(tabs)/dashboard/_layout.tsx b/apps/mobile/app/(tabs)/dashboard/_layout.tsxindex aeeadd1f..2a67bc2f 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 { Platform, TouchableOpacity, View } from "react-native";+import { Platform, TouchableOpacity } from "react-native";import { SheetManager } from "react-native-actions-sheet";import * as DropdownMenu from "zeego/dropdown-menu";@@ -17,24 +17,20 @@ export default function Layout() {screenOptions={{headerLargeTitle: true,headerTransparent: Platform.OS === "ios",- headerTintColor: colorScheme === "dark" ? "white" : "black",headerShadowVisible: false,- headerLargeTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },+ headerBlurEffect:+ colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",+ headerTintColor: colorScheme === "dark" ? "white" : "black",headerLargeStyle: {+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],+ },+ headerStyle: {backgroundColor:Platform.OS === "ios"? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],- },- headerStyle: {- backgroundColor: isIOS26Plus- ? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],+ : colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",},}}>diff --git a/apps/mobile/app/(tabs)/links/_layout.tsx b/apps/mobile/app/(tabs)/links/_layout.tsxindex d7dc80f1..41518216 100644--- a/apps/mobile/app/(tabs)/links/_layout.tsx+++ b/apps/mobile/app/(tabs)/links/_layout.tsx@@ -16,7 +16,6 @@ export default function Layout() {headerLargeTitle: true,headerTintColor: colorScheme === "dark" ? "white" : "black",headerTransparent: Platform.OS === "ios",- headerShadowVisible: false,headerSearchBarOptions: {placeholder: "Search Links",autoCapitalize: "none",@@ -30,22 +29,19 @@ export default function Layout() {},headerIconColor: colorScheme === "dark" ? "white" : "black",},- headerLargeTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },+ headerShadowVisible: false,+ headerBlurEffect:+ colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",headerLargeStyle: {+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],+ },+ headerStyle: {backgroundColor:Platform.OS === "ios"? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],- },- headerStyle: {- backgroundColor: isIOS26Plus- ? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],+ : colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",},}}/>diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsxindex 9989ce61..355f9206 100644--- a/apps/mobile/app/(tabs)/settings/_layout.tsx+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx@@ -18,19 +18,19 @@ export default function Layout() {headerLargeTitle: true,headerTintColor: colorScheme === "dark" ? "white" : "black",headerShadowVisible: false,- headerLargeTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },+ headerBackTitle: "Back",+ headerBlurEffect:+ colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",headerLargeStyle: {- backgroundColor:- Platform.OS === "ios" ? "transparent" : themeBackgroundColor,+ backgroundColor: rawTheme[colorScheme as ThemeName]["base-100"],},- headerBackTitle: "Back",headerStyle: {- backgroundColor: isIOS26Plus ? "transparent" : themeBackgroundColor,+ backgroundColor:+ Platform.OS === "ios"+ ? "transparent"+ : colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",},}}>diff --git a/apps/mobile/app/(tabs)/tags/_layout.tsx b/apps/mobile/app/(tabs)/tags/_layout.tsxindex 2806498c..6f60489f 100644--- a/apps/mobile/app/(tabs)/tags/_layout.tsx+++ b/apps/mobile/app/(tabs)/tags/_layout.tsx@@ -16,7 +16,6 @@ export default function Layout() {headerLargeTitle: true,headerTintColor: colorScheme === "dark" ? "white" : "black",headerTransparent: Platform.OS === "ios",- headerShadowVisible: false,headerSearchBarOptions: {placeholder: "Search Tags",autoCapitalize: "none",@@ -30,21 +29,21 @@ export default function Layout() {},headerIconColor: colorScheme === "dark" ? "white" : "black",},- headerLargeTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color: rawTheme[colorScheme as ThemeName]["base-content"],- },+ headerShadowVisible: false,+ headerBlurEffect:+ colorScheme === "dark" ? "systemMaterialDark" : "systemMaterial",headerLargeStyle: {backgroundColor: isIOS26Plus? "transparent": rawTheme[colorScheme as ThemeName]["base-100"],},headerStyle: {- backgroundColor: isIOS26Plus- ? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],+ backgroundColor:+ Platform.OS === "ios"+ ? "transparent"+ : colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",},}}/>diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsxindex 30a972ba..ca00d6bf 100644--- a/apps/mobile/app/_layout.tsx+++ b/apps/mobile/app/_layout.tsx@@ -125,8 +125,6 @@ const RootComponent = ({const { tmp } = useTmpStore();- const isIOS26Plus = Platform.OS === "ios" && Number(Platform.Version) >= 26;-return (<Viewstyle={[{ flex: 1 }, colorScheme === "dark" ? darkTheme : lightTheme]}@@ -148,7 +146,6 @@ const RootComponent = ({}}>{/* <Stack.Screen name="(tabs)" /> */}-<Stack.Screenname="links/[id]"options={{@@ -156,160 +153,21 @@ const RootComponent = ({headerBackTitle: "Back",headerTitle: "",headerTintColor: colorScheme === "dark" ? "white" : "black",- ...(isIOS26Plus- ? {- headerTransparent: true,- headerLargeStyle: { backgroundColor: "transparent" },- headerStyle: { backgroundColor: "transparent" },- headerRightBackgroundVisible: true,- unstable_headerRightItems: () => [- {- type: "button",- label: "Open",- icon: { type: "sfSymbol", name: "safari" },- onPress: () => {- if (tmp.link) {- if (tmp.link.url) {- Linking.openURL(tmp.link.url);- } else {- const format = getOriginalFormat(tmp.link);-- Linking.openURL(- format !== null- ? `${auth.instance}/preserved/${tmp.link.id}?format=${format}`- : tmp.link.url || ""- );- }- }- },- sharesBackground: true,- },- {- type: "menu",- label: "More",- icon: { type: "sfSymbol", name: "ellipsis.circle" },- sharesBackground: true,- menu: {- items: [- ...(tmp.link?.url- ? [- {- type: "action",- label: "Share",- onPress: async () => {- await Share.share({- url: tmp.link!.url as string,- });- },- },- ]- : []),-- ...(tmp.link && tmp.user- ? [- {- type: "action",- label:- tmp.link.pinnedBy &&- tmp.link.pinnedBy[0]- ? "Unpin Link"- : "Pin Link",- onPress: () => {- const isAlreadyPinned =- !!tmp.link?.pinnedBy?.[0];-- updateLink.mutateAsync({- ...(tmp.link as LinkIncludingShortenedCollectionAndTags),- pinnedBy: (isAlreadyPinned- ? [{ id: undefined }]- : [{ id: tmp.user?.id }]) as any,- });- },- },- ]- : []),-- ...(tmp.link- ? [- {- type: "action" as any,- label: "Edit Link",- onPress: () => {- SheetManager.show("edit-link-sheet", {- payload: {- link: tmp.link as LinkIncludingShortenedCollectionAndTags,- },- });- },- },- {- type: "action" as any,- label: "Delete",- attributes: {- destructive: true,- },- onPress: () => {- Alert.alert(- "Delete Link",- "Are you sure you want to delete this link? This action cannot be undone.",- [- {- text: "Cancel",- style: "cancel",- },- {- text: "Delete",- style: "destructive",- onPress: async () => {- deleteLink.mutate(- tmp.link?.id as number- );- await deleteLinkCache(- tmp.link?.id as number- );- router.back();- },- },- ]- );- },- },- ]- : []),- ],- },- },- ],- }- : {- headerTransparent: Platform.OS === "ios",- headerLargeTitleStyle: {- color:- rawTheme[colorScheme as ThemeName]["base-content"],- },- headerTitleStyle: {- color:- rawTheme[colorScheme as ThemeName]["base-content"],- },- headerLargeStyle: {- backgroundColor:- Platform.OS === "ios"- ? "transparent"- : rawTheme[colorScheme as ThemeName]["base-100"],- },- headerStyle: {- backgroundColor:- rawTheme[colorScheme as ThemeName]["base-100"],- },- headerRight: () => (- <View className="flex-row gap-5">- <TouchableOpacity- onPress={() => {- if (tmp.link) {- if (tmp.link.url) {- return Linking.openURL(tmp.link.url);- } else {- const format = getOriginalFormat(tmp.link);+ headerStyle: {+ backgroundColor:+ colorScheme === "dark"+ ? rawTheme["dark"]["base-100"]+ : "white",+ },+ headerRight: () => (+ <View className="flex-row gap-5">+ <TouchableOpacity+ onPress={() => {+ if (tmp.link) {+ if (tmp.link.url) {+ return Linking.openURL(tmp.link.url);+ } else {+ const format = getOriginalFormat(tmp.link);return Linking.openURL(format !== null