Skip to content

Commit

Permalink
ui(mobile): Add horizontal margins to the bookmark cards
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed May 12, 2024
1 parent ecfcba5 commit e6c9ef4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/app/dashboard/(tabs)/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Search() {
<PageTitle title="Search" />
<Input
placeholder="Search"
className="mx-4"
className="mx-1"
value={search}
onChangeText={setSearch}
autoFocus
Expand Down
6 changes: 5 additions & 1 deletion apps/mobile/components/bookmarks/BookmarkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,5 +333,9 @@ export default function BookmarkCard({
break;
}

return <View className="border-b border-accent bg-background">{comp}</View>;
return (
<View className="overflow-hidden rounded-xl border-b border-accent bg-background">
{comp}
</View>
);
}
1 change: 1 addition & 0 deletions apps/mobile/components/bookmarks/BookmarkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function BookmarkList({
ListHeaderComponent={header}
contentContainerStyle={{
gap: 15,
marginHorizontal: 15,
marginBottom: 15,
}}
renderItem={(b) => <BookmarkCard bookmark={b.item} />}
Expand Down
4 changes: 3 additions & 1 deletion apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default function UpdatingBookmarkList({

return (
<BookmarkList
bookmarks={data.pages.flatMap((p) => p.bookmarks)}
bookmarks={data.pages
.flatMap((p) => p.bookmarks)
.filter((b) => b.content.type != "unknown")}
header={header}
onRefresh={onRefresh}
fetchNextPage={fetchNextPage}
Expand Down

0 comments on commit e6c9ef4

Please sign in to comment.