aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-15 00:16:02 +0000
committerMohamedBassem <me@mbassem.com>2024-03-15 00:23:27 +0000
commit5953ef044e211085dbc6e3f779200bda4d9ae8bd (patch)
tree5778e607bc7f192bd46f6e5094e1e42e3de5bdc4 /apps/mobile
parent4691c63466ed532edc6f727a4e08f159f9a2d790 (diff)
downloadkarakeep-5953ef044e211085dbc6e3f779200bda4d9ae8bd.tar.zst
mobile: Revert the margins around the cards
Diffstat (limited to 'apps/mobile')
-rw-r--r--apps/mobile/app/dashboard/(tabs)/lists.tsx4
-rw-r--r--apps/mobile/app/dashboard/(tabs)/search.tsx2
-rw-r--r--apps/mobile/components/bookmarks/BookmarkCard.tsx4
-rw-r--r--apps/mobile/components/bookmarks/BookmarkList.tsx5
-rw-r--r--apps/mobile/package.json1
5 files changed, 7 insertions, 9 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx
index a293757b..4a0a6948 100644
--- a/apps/mobile/app/dashboard/(tabs)/lists.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx
@@ -48,8 +48,8 @@ export default function Lists() {
return (
<FlatList
contentContainerStyle={{
- gap: 10,
- marginTop: 10,
+ gap: 5,
+ marginTop: 5,
}}
renderItem={(l) => (
<View className="mx-2 block rounded-xl border border-gray-100 bg-white px-4 py-2">
diff --git a/apps/mobile/app/dashboard/(tabs)/search.tsx b/apps/mobile/app/dashboard/(tabs)/search.tsx
index 0025262e..043dffab 100644
--- a/apps/mobile/app/dashboard/(tabs)/search.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/search.tsx
@@ -27,7 +27,7 @@ export default function Search() {
autoFocus
autoCapitalize="none"
/>
- <Divider orientation="horizontal" className="mb-1 mt-4 w-full" />
+ <Divider orientation="horizontal" className="mt-4 w-full" />
{data && <BookmarkList ids={data.bookmarks.map((b) => b.id)} />}
</View>
);
diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx
index 93a059f8..2189b385 100644
--- a/apps/mobile/components/bookmarks/BookmarkCard.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx
@@ -151,7 +151,7 @@ function LinkCard({ bookmark }: { bookmark: ZBookmark }) {
const imageComp = bookmark.content.imageUrl ? (
<Image
source={{ uri: bookmark.content.imageUrl }}
- className="h-56 min-h-56 w-full rounded-t-lg object-cover"
+ className="h-56 min-h-56 w-full object-cover"
/>
) : (
<Image
@@ -237,7 +237,7 @@ export default function BookmarkCard({
}
return (
- <View className="w-96 rounded-lg border border-gray-300 bg-white shadow-sm">
+ <View className="border-b border-gray-300 bg-white">
{comp}
</View>
);
diff --git a/apps/mobile/components/bookmarks/BookmarkList.tsx b/apps/mobile/components/bookmarks/BookmarkList.tsx
index 79d3d79e..0c8ddb3c 100644
--- a/apps/mobile/components/bookmarks/BookmarkList.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkList.tsx
@@ -42,12 +42,11 @@ export default function BookmarkList({
itemLayoutAnimation={LinearTransition}
contentContainerStyle={{
gap: 15,
- marginVertical: 15,
- alignItems: "center",
+ marginBottom: 15,
}}
renderItem={(b) => <BookmarkCard bookmark={b.item} />}
ListEmptyComponent={
- <View className="h-full items-center justify-center">
+ <View className="h-full pt-4 items-center justify-center">
<Text className="text-xl">No Bookmarks</Text>
</View>
}
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 80036724..ead5e796 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -9,7 +9,6 @@
"ios": "expo run:ios",
"web": "expo start --web",
"lint": "eslint .",
- "format": "prettier --check . --ignore-path .gitignore",
"typecheck": "tsc --noEmit"
},
"dependencies": {