From 2efc7c8c01866fafad5322fb8783d94821e32ff1 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Thu, 31 Oct 2024 09:01:33 +0000 Subject: [PATCH] fix(mobile): Fix bookmarkview page on android not showing bookmark actions. Fixes #603 --- apps/mobile/app.json | 6 ++-- .../mobile/app/dashboard/bookmarks/[slug].tsx | 34 ++++++++++++++++--- .../components/ui/CustomSafeAreaView.tsx | 5 ++- 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/apps/mobile/app.json b/apps/mobile/app.json index 1aebf2c0..bd3e62d1 100644 --- a/apps/mobile/app.json +++ b/apps/mobile/app.json @@ -3,7 +3,7 @@ "name": "Hoarder App", "slug": "hoarder", "scheme": "hoarder", - "version": "1.6.5", + "version": "1.6.6", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "automatic", @@ -30,7 +30,7 @@ "NSAllowsLocalNetworking": true } }, - "buildNumber": "14" + "buildNumber": "15" }, "android": { "adaptiveIcon": { @@ -48,7 +48,7 @@ } }, "package": "app.hoarder.hoardermobile", - "versionCode": 14 + "versionCode": 15 }, "plugins": [ "expo-router", diff --git a/apps/mobile/app/dashboard/bookmarks/[slug].tsx b/apps/mobile/app/dashboard/bookmarks/[slug].tsx index bb6570a7..9459488a 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug].tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug].tsx @@ -15,6 +15,7 @@ import BookmarkTextMarkdown from "@/components/bookmarks/BookmarkTextMarkdown"; import ListPickerModal from "@/components/bookmarks/ListPickerModal"; import ViewBookmarkModal from "@/components/bookmarks/ViewBookmarkModal"; import FullPageError from "@/components/FullPageError"; +import { TailwindResolver } from "@/components/TailwindResolver"; import { Button } from "@/components/ui/Button"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import FullPageSpinner from "@/components/ui/FullPageSpinner"; @@ -72,31 +73,54 @@ function BottomActions({ bookmark }: { bookmark: ZBookmark }) { }, ], ); + const actions = [ { id: "lists", - icon: , + icon: ( + } + /> + ), shouldRender: true, onClick: () => manageListsSheetRef.current?.present(), disabled: false, }, { id: "open", - icon: , + icon: ( + ( + + )} + /> + ), shouldRender: true, onClick: () => viewBookmarkModal.current?.present(), disabled: false, }, { id: "delete", - icon: , + icon: ( + } + /> + ), shouldRender: true, onClick: deleteBookmarkAlert, disabled: isDeletionPending, }, { id: "browser", - icon: , + icon: ( + } + /> + ), shouldRender: bookmark.content.type == BookmarkTypes.LINK, onClick: () => bookmark.content.type == BookmarkTypes.LINK && @@ -276,7 +300,7 @@ export default function ListView() { break; } return ( - + 0 ? headerHeight : insets.top : undefined, + paddingBottom: edges.includes("bottom") ? insets.bottom : undefined, }} > {children}