From e39e2b4fdbaf0a7c0c2bdd90e504b0bb4c8777e2 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 2 Dec 2021 11:57:35 +0500 Subject: [PATCH] use variable width for tags on note item --- apps/mobile/src/components/NoteItem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js index b0b5fa394..8d7bcf236 100644 --- a/apps/mobile/src/components/NoteItem/index.js +++ b/apps/mobile/src/components/NoteItem/index.js @@ -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)} />