Skip to content

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

small fix

daniel31x13f2da4094664f
diff --git a/apps/mobile/app/(tabs)/collections/index.tsx b/apps/mobile/app/(tabs)/collections/index.tsx
index 0fde61a6..b50c4c6d 100644
--- a/apps/mobile/app/(tabs)/collections/index.tsx
+++ b/apps/mobile/app/(tabs)/collections/index.tsx
@@ -34,7 +34,7 @@ export default function CollectionsScreen() {
<Spinner
refreshing={collections.isRefetching}
onRefresh={() => collections.refetch()}
- progressBackgroundColor={rawTheme[colorScheme as ThemeName]["base-200"]}
+ progressBackgroundColor={rawTheme[colorScheme as ThemeName].neutral}
colors={[rawTheme[colorScheme as ThemeName]["base-content"]]}
/>
);
diff --git a/apps/mobile/app/(tabs)/tags/index.tsx b/apps/mobile/app/(tabs)/tags/index.tsx
index 49dfba95..ebffd68a 100644
--- a/apps/mobile/app/(tabs)/tags/index.tsx
+++ b/apps/mobile/app/(tabs)/tags/index.tsx
@@ -53,7 +53,7 @@ export default function TagsScreen() {
<Spinner
refreshing={tags.isRefetching}
onRefresh={() => resetInfiniteQueryPagination(queryClient, ["tags"])}
- progressBackgroundColor={rawTheme[colorScheme as ThemeName]["base-200"]}
+ progressBackgroundColor={rawTheme[colorScheme as ThemeName].neutral}
colors={[rawTheme[colorScheme as ThemeName]["base-content"]]}
/>
);
diff --git a/apps/mobile/components/Links.tsx b/apps/mobile/components/Links.tsx
index a2f23759..21471605 100644
--- a/apps/mobile/components/Links.tsx
+++ b/apps/mobile/components/Links.tsx
@@ -33,7 +33,7 @@ export default function Links({ links, data }: Props) {
await resetInfiniteQueryPagination(queryClient, ["links"]);
setPromptedRefetch(false);
}}
- progressBackgroundColor={rawTheme[colorScheme as ThemeName]["base-200"]}
+ progressBackgroundColor={rawTheme[colorScheme as ThemeName].neutral}
colors={[rawTheme[colorScheme as ThemeName]["base-content"]]}
/>
);
diff --git a/apps/mobile/components/WebViewModal.tsx b/apps/mobile/components/WebViewModal.tsx
index 5fcdd58d..462cf540 100644
--- a/apps/mobile/components/WebViewModal.tsx
+++ b/apps/mobile/components/WebViewModal.tsx
@@ -1,7 +1,9 @@
import { useEffect, useRef } from "react";
-import { Modal, Platform, View } from "react-native";
+import { ActivityIndicator, Modal, Platform, View } from "react-native";
import { WebView } from "react-native-webview";
import { useSafeAreaInsets } from "react-native-safe-area-context";
+import { useColorScheme } from "nativewind";
+import { rawTheme, ThemeName } from "@/lib/colors";
import SheetHeader from "./ActionSheets/SheetHeader";
type WebViewModalProps = {
@@ -39,6 +41,7 @@ export default function WebViewModal({
sessionToken,
}: WebViewModalProps) {
const insets = useSafeAreaInsets();
+ const { colorScheme } = useColorScheme();
const webViewRef = useRef<WebView>(null);
const recoveredFromLogin = useRef(false);
@@ -71,6 +74,16 @@ export default function WebViewModal({
ref={webViewRef}
source={{ uri }}
className="flex-1"
+ incognito={true}
+ startInLoadingState
+ renderLoading={() => (
+ <View className="absolute inset-0 items-center justify-center bg-base-100">
+ <ActivityIndicator
+ size="large"
+ color={rawTheme[colorScheme as ThemeName].neutral}
+ />
+ </View>
+ )}
injectedJavaScriptBeforeContentLoaded={sessionCookieScript}
onNavigationStateChange={
sessionCookieScript