aboutsummaryrefslogtreecommitdiffstats
path: root/packages/mobile/app
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 12:13:38 +0000
committerMohamedBassem <me@mbassem.com>2024-03-13 12:34:07 +0000
commit408984d9325f12937ac5747505370dec26e46d3f (patch)
treef8a0f047776259ba24c7058aaf4efffc856ad978 /packages/mobile/app
parenta91ebf1353432d8dced29049b26df5eea7ee39d9 (diff)
downloadkarakeep-408984d9325f12937ac5747505370dec26e46d3f.tar.zst
mobile: Add borders and padding to the cards
Diffstat (limited to 'packages/mobile/app')
-rw-r--r--packages/mobile/app/dashboard/(tabs)/index.tsx8
-rw-r--r--packages/mobile/app/dashboard/(tabs)/search.tsx6
2 files changed, 5 insertions, 9 deletions
diff --git a/packages/mobile/app/dashboard/(tabs)/index.tsx b/packages/mobile/app/dashboard/(tabs)/index.tsx
index 28fa39de..07516f3b 100644
--- a/packages/mobile/app/dashboard/(tabs)/index.tsx
+++ b/packages/mobile/app/dashboard/(tabs)/index.tsx
@@ -1,11 +1,5 @@
-import { View } from "react-native";
-
import BookmarkList from "@/components/bookmarks/BookmarkList";
export default function Home() {
- return (
- <View>
- <BookmarkList archived={false} />
- </View>
- );
+ return <BookmarkList archived={false} />;
}
diff --git a/packages/mobile/app/dashboard/(tabs)/search.tsx b/packages/mobile/app/dashboard/(tabs)/search.tsx
index 0cc16716..980cab36 100644
--- a/packages/mobile/app/dashboard/(tabs)/search.tsx
+++ b/packages/mobile/app/dashboard/(tabs)/search.tsx
@@ -4,6 +4,7 @@ import { View } from "react-native";
import { useDebounce } from "use-debounce";
import BookmarkList from "@/components/bookmarks/BookmarkList";
+import { Divider } from "@/components/ui/Divider";
import { Input } from "@/components/ui/Input";
import { api } from "@/lib/trpc";
@@ -18,15 +19,16 @@ export default function Search() {
);
return (
- <View className="flex gap-2 p-2">
+ <View>
<Input
placeholder="Search"
- className="bg-white"
+ className="mx-4 mt-4 bg-white"
value={search}
onChangeText={setSearch}
autoFocus
autoCapitalize="none"
/>
+ <Divider orientation="horizontal" className="mb-1 mt-4 w-full" />
{data && <BookmarkList ids={data.bookmarks.map((b) => b.id)} />}
</View>
);