aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/bookmarks
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-11-24 23:41:28 +0000
committerMohamedBassem <me@mbassem.com>2024-11-24 23:41:28 +0000
commit5a496916c386bf1bd31ee841b76cb28d855716b9 (patch)
tree1793130c1495def3d5dcd58a5a8fa42f19caaea3 /apps/mobile/app/dashboard/bookmarks
parent1a2b600692fbe98b127627ec00be3364e39fe63e (diff)
downloadkarakeep-5a496916c386bf1bd31ee841b76cb28d855716b9.tar.zst
fix(mobile): Use keyboard avoiding view in the info page
Diffstat (limited to 'apps/mobile/app/dashboard/bookmarks')
-rw-r--r--apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx27
1 files changed, 17 insertions, 10 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
index d573df21..ff2f6831 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
@@ -1,6 +1,8 @@
import React from "react";
import {
Keyboard,
+ KeyboardAvoidingView,
+ Platform,
Pressable,
ScrollView,
Text,
@@ -184,16 +186,21 @@ const ViewBookmarkPage = () => {
),
}}
/>
- <ScrollView className="h-screen w-full p-4">
- <TouchableWithoutFeedback onPress={Keyboard.dismiss}>
- <View className="gap-4 px-2">
- <TitleEditor bookmarkId={bookmark.id} title={title ?? ""} />
- <TagList bookmark={bookmark} />
- <ManageLists bookmark={bookmark} />
- <NotesEditor bookmark={bookmark} />
- </View>
- </TouchableWithoutFeedback>
- </ScrollView>
+ <KeyboardAvoidingView
+ behavior={Platform.OS === "ios" ? "padding" : "height"}
+ className="pb-2"
+ >
+ <ScrollView className="h-screen w-full p-4">
+ <TouchableWithoutFeedback onPress={Keyboard.dismiss}>
+ <View className="gap-4 px-2">
+ <TitleEditor bookmarkId={bookmark.id} title={title ?? ""} />
+ <TagList bookmark={bookmark} />
+ <ManageLists bookmark={bookmark} />
+ <NotesEditor bookmark={bookmark} />
+ </View>
+ </TouchableWithoutFeedback>
+ </ScrollView>
+ </KeyboardAvoidingView>
</CustomSafeAreaView>
);
};