Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(mobile): fix formsheet padding in manage_lists, manage_tags and info sheets

Mohamed Bassem41633c2a1ea2
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
index 3e13d0da..c8479383 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
@@ -26,6 +26,7 @@ import { Text } from "@/components/ui/Text";
import { useToast } from "@/components/ui/Toast";
import { useColorScheme } from "@/lib/useColorScheme";
import { ChevronUp, RefreshCw, Sparkles, Trash2 } from "lucide-react-native";
+import { useHeaderHeight } from "@react-navigation/elements";
import {
useAutoRefreshingBookmarkQuery,
@@ -291,6 +292,7 @@ function AISummarySection({
// --- Main Page ---
const ViewBookmarkPage = () => {
+ const headerHeight = useHeaderHeight();
const { slug } = useLocalSearchParams();
const { toast } = useToast();
const { data: currentUser } = useWhoAmI();
@@ -423,7 +425,11 @@ const ViewBookmarkPage = () => {
<KeyboardAwareScrollView
bottomOffset={8}
keyboardDismissMode="interactive"
- contentContainerStyle={{ padding: 16, gap: 20, paddingBottom: 40 }}
+ contentContainerStyle={{
+ padding: 16,
+ gap: 20,
+ paddingBottom: 40 + headerHeight,
+ }}
className="bg-background"
>
<TitleEditor
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
index 4d566040..df53cfcf 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
@@ -7,6 +7,7 @@ import { useToast } from "@/components/ui/Toast";
import { useColorScheme } from "@/lib/useColorScheme";
import { useQuery } from "@tanstack/react-query";
import { Check } from "lucide-react-native";
+import { useHeaderHeight } from "@react-navigation/elements";
import type { ZBookmarkList } from "@karakeep/shared/types/lists";
import {
@@ -17,6 +18,7 @@ import {
import { useTRPC } from "@karakeep/shared-react/trpc";
const ListPickerPage = () => {
+ const headerHeight = useHeaderHeight();
const api = useTRPC();
const { slug: bookmarkId } = useLocalSearchParams();
const { colors } = useColorScheme();
@@ -106,7 +108,10 @@ const ListPickerPage = () => {
/>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
- contentContainerStyle={{ padding: 16, paddingBottom: 40 }}
+ contentContainerStyle={{
+ padding: 16,
+ paddingBottom: 40 + headerHeight,
+ }}
className="flex-1 bg-background"
>
{filteredPaths && filteredPaths.length > 0 ? (
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx
index a7c4a413..c5b21425 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx
@@ -8,6 +8,7 @@ import { useToast } from "@/components/ui/Toast";
import { useColorScheme } from "@/lib/useColorScheme";
import { useQuery } from "@tanstack/react-query";
import { Check, Plus } from "lucide-react-native";
+import { useHeaderHeight } from "@react-navigation/elements";
import {
useAutoRefreshingBookmarkQuery,
@@ -18,6 +19,7 @@ import { useTRPC } from "@karakeep/shared-react/trpc";
const NEW_TAG_ID = "new-tag";
const TagPickerPage = () => {
+ const headerHeight = useHeaderHeight();
const api = useTRPC();
const { colors } = useColorScheme();
const { slug: bookmarkId } = useLocalSearchParams();
@@ -195,7 +197,11 @@ const TagPickerPage = () => {
<ScrollView
contentInsetAdjustmentBehavior="automatic"
keyboardShouldPersistTaps="handled"
- contentContainerStyle={{ padding: 16, gap: 20, paddingBottom: 40 }}
+ contentContainerStyle={{
+ padding: 16,
+ gap: 20,
+ paddingBottom: 40 + headerHeight,
+ }}
className="flex-1 bg-background"
>
{filteredOptimisticTags.length > 0 && (