From 254909747e3bd3a6f21a653c53f82550c5625bf6 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 14:54:12 +0000 Subject: mobile: Minor tweaks to the action button to look better --- packages/mobile/components/bookmarks/BookmarkCard.tsx | 19 +++++++++++++------ packages/mobile/components/bookmarks/BookmarkList.tsx | 1 - 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/mobile/components/bookmarks/BookmarkCard.tsx b/packages/mobile/components/bookmarks/BookmarkCard.tsx index b3ddf302..25947790 100644 --- a/packages/mobile/components/bookmarks/BookmarkCard.tsx +++ b/packages/mobile/components/bookmarks/BookmarkCard.tsx @@ -5,6 +5,7 @@ import { View, Text, Image, ScrollView, Pressable } from "react-native"; import Markdown from "react-native-markdown-display"; import { ActionButton } from "../ui/ActionButton"; +import { Divider } from "../ui/Divider"; import { Skeleton } from "../ui/Skeleton"; import { useToast } from "../ui/Toast"; @@ -79,7 +80,7 @@ function ActionBar({ bookmark }: { bookmark: ZBookmark }) { {(variables ? variables.favourited : bookmark.favourited) ? ( ) : ( - + )} - {bookmark.archived ? : } + {bookmark.archived ? ( + + ) : ( + + )} - + ); @@ -166,7 +171,8 @@ function LinkCard({ bookmark }: { bookmark: ZBookmark }) { {bookmark.content.title || parsedUrl.host} - + + {parsedUrl.host} @@ -181,11 +187,12 @@ function TextCard({ bookmark }: { bookmark: ZBookmark }) { } return ( - + {bookmark.content.text} - + + diff --git a/packages/mobile/components/bookmarks/BookmarkList.tsx b/packages/mobile/components/bookmarks/BookmarkList.tsx index af5c9de7..0a57695c 100644 --- a/packages/mobile/components/bookmarks/BookmarkList.tsx +++ b/packages/mobile/components/bookmarks/BookmarkList.tsx @@ -45,7 +45,6 @@ export default function BookmarkList({ gap: 15, marginVertical: 15, alignItems: "center", - height: "100%", }} renderItem={(b) => } ListEmptyComponent={ -- cgit v1.2.3-70-g09d2