use variable width for tags on note item

This commit is contained in:
ammarahm-ed
2021-12-02 11:57:35 +05:00
parent f221cf8275
commit e39e2b4fdb

View File

@@ -245,7 +245,7 @@ const NoteItem = ({item, isTrash, tags}) => {
paddingHorizontal: 2,
marginRight: 4,
zIndex: 10,
maxWidth: 120
maxWidth:tags?.slice(0, 3)?.length > 1 ? 130 : null
}}
onPress={() => navigateToTag(item)}
/>