From 492a4d16b277a3ac0d6dccacebf9c10c64e4f3f4 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 25 Apr 2023 15:19:49 +0500 Subject: [PATCH] mobile: fix note options ui --- apps/mobile/app/components/properties/items.js | 12 ++++-------- apps/mobile/app/hooks/use-actions.js | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/mobile/app/components/properties/items.js b/apps/mobile/app/components/properties/items.js index ecc4af752..1c8ab6e4e 100644 --- a/apps/mobile/app/components/properties/items.js +++ b/apps/mobile/app/components/properties/items.js @@ -116,11 +116,11 @@ export const Items = ({ item, buttons, close }) => { key={item.id} testID={"icon-" + item.id} customStyle={{ - alignItems: "center", + alignSelf: "flex-start", width: topBarItemWidth, - marginBottom: 10, marginRight: isLast ? 0 : 10, - backgroundColor: "transparent" + backgroundColor: "transparent", + paddingHorizontal: 0 }} > { /> - + {item.title} diff --git a/apps/mobile/app/hooks/use-actions.js b/apps/mobile/app/hooks/use-actions.js index 3c2528b19..80da7c661 100644 --- a/apps/mobile/app/hooks/use-actions.js +++ b/apps/mobile/app/hooks/use-actions.js @@ -613,7 +613,7 @@ export const useActions = ({ close = () => null, item }) => { }, { id: "pin", - title: item.pinned ? "Unpin" : "Pin", + title: "Pin", icon: item.pinned ? "pin-off-outline" : "pin-outline", func: pinItem, close: false, @@ -623,7 +623,7 @@ export const useActions = ({ close = () => null, item }) => { }, { id: "favorite", - title: !item.favorite ? "Favorite" : "Unfavorite", + title: "Favorite", icon: item.favorite ? "star-off" : "star-outline", func: addToFavorites, close: false,