A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
show only 10 tags in menu
ammarahm-ed561d51c670ed
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex 3c742f8fd..35e8dd095 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -309,61 +309,64 @@ export const Menu = ({flexWrap: 'wrap',marginBottom: 0,}}>- {tags.map(item => (- <TouchableOpacity- key={item.title}- activeOpacity={opacity / 2}- onPress={() => {- close();- NavigationService.navigate('Notes', {- title: item.title,- tag: item,- type: 'tag',- });- }}- style={{- flexDirection: 'row',- justifyContent: 'flex-start',- alignItems: 'center',- padding: 5,- paddingLeft: 2.5,- marginTop: 5,- }}>- <Text- style={{- fontFamily: WEIGHT.regular,- fontSize: SIZE.xs + 1,- color: colors.accent,- }}>- #- </Text>- <Text+ {tags+ .filter(o => o.count > 1)+ .slice(0, tags.length > 10 ? 10 : tags.length)+ .map(item => (+ <TouchableOpacity+ key={item.title}+ activeOpacity={opacity / 2}+ onPress={() => {+ close();+ NavigationService.navigate('Notes', {+ title: item.title,+ tag: item,+ type: 'tag',+ });+ }}style={{- fontFamily: WEIGHT.regular,- fontSize: SIZE.xs + 1,- color: colors.icon,+ flexDirection: 'row',+ justifyContent: 'flex-start',+ alignItems: 'center',+ padding: 5,+ paddingLeft: 2.5,+ marginTop: 5,}}>- {item.title}- </Text>- {item.count > 1 ? (<Textstyle={{- color: 'white',- backgroundColor: colors.accent,- fontSize: SIZE.xxs - 2,- minWidth: 10,- minHeight: 10,- marginTop: -10,- borderRadius: 2,- textAlign: 'center',- padding: 0,- paddingHorizontal: 1,+ fontFamily: WEIGHT.regular,+ fontSize: SIZE.xs + 1,+ color: colors.accent,+ }}>+ #+ </Text>+ <Text+ style={{+ fontFamily: WEIGHT.regular,+ fontSize: SIZE.xs + 1,+ color: colors.icon,}}>- {item.count}+ {item.title}</Text>- ) : null}- </TouchableOpacity>- ))}+ {item.count > 1 ? (+ <Text+ style={{+ color: 'white',+ backgroundColor: colors.accent,+ fontSize: SIZE.xxs - 2,+ minWidth: 10,+ minHeight: 10,+ marginTop: -10,+ borderRadius: 2,+ textAlign: 'center',+ padding: 0,+ paddingHorizontal: 1,+ }}>+ {item.count}+ </Text>+ ) : null}+ </TouchableOpacity>+ ))}</View>)}