Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix note options ui

ammarahm-ed492a4d16b277
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
}}
>
<PressableButton
@@ -150,11 +150,7 @@ export const Items = ({ item, buttons, close }) => {
/>
</PressableButton>
- <Paragraph
- size={SIZE.xxs + 1}
- style={{ textAlign: "center" }}
- textBreakStrategy="simple"
- >
+ <Paragraph size={SIZE.xxs + 1} style={{ textAlign: "center" }}>
{item.title}
</Paragraph>
</PressableButton>
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,