mobile: fix note options ui

This commit is contained in:
ammarahm-ed
2023-04-25 15:19:49 +05:00
committed by Ammar Ahmed
parent 3d7c1fa1e7
commit 492a4d16b2
2 changed files with 6 additions and 10 deletions

View File

@@ -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>

View File

@@ -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,