Skip to content

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

change color of tags & topics in properties

ammarahm-ed88e4825075ab
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 77e86892b..247090853 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -840,9 +840,7 @@ export const ActionSheetComponent = ({
numColumns={rowItems.length < 5 ? rowItems.length : 5}
style={{
marginTop: note.type !== 'note' ? 10 : 0,
- paddingTop: 10,
- borderBottomWidth: 1,
- borderBottomColor: colors.nav
+ paddingTop: 10
}}
columnWrapperStyle={{
justifyContent: 'flex-start'
@@ -859,10 +857,6 @@ export const ActionSheetComponent = ({
data={rowItemsData.filter(
i => rowItems.indexOf(i.name) > -1 && !i.hidden
)}
- style={{
- borderBottomWidth: 1,
- borderBottomColor: colors.nav
- }}
keyExtractor={item => item.title}
renderItem={renderColumnItem}
/>
@@ -880,8 +874,10 @@ export const ActionSheetComponent = ({
flexDirection: 'row',
justifyContent: 'flex-start',
alignSelf: 'center',
- paddingTop: 5,
- marginTop: 10
+ paddingTop: 10,
+ marginTop: 10,
+ borderTopWidth: 1,
+ borderTopColor: colors.nav
}}>
<Icon
name="shield-key-outline"
diff --git a/apps/mobile/src/components/ActionSheetComponent/tags.js b/apps/mobile/src/components/ActionSheetComponent/tags.js
index 670fce322..25b051d14 100644
--- a/apps/mobile/src/components/ActionSheetComponent/tags.js
+++ b/apps/mobile/src/components/ActionSheetComponent/tags.js
@@ -25,9 +25,6 @@ export const Tags = ({item, close}) => {
flexWrap: 'wrap',
alignItems: 'center'
}}>
- {item.tags.map((item, index) =>
- item ? <TagItem key={item} tag={item} close={close} /> : null
- )}
<Button
onPress={async () => {
close();
@@ -42,15 +39,17 @@ export const Tags = ({item, close}) => {
icon="plus"
iconPosition="right"
height={30}
- fontSize={SIZE.sm}
+ fontSize={SIZE.xs + 1}
style={{
- margin: 1,
marginRight: 5,
paddingHorizontal: 0,
borderRadius: 100,
paddingHorizontal: 8
}}
/>
+ {item.tags.map((item, index) =>
+ item ? <TagItem key={item} tag={item} close={close} /> : null
+ )}
</View>
</View>
) : null;
@@ -90,12 +89,12 @@ const TagItem = ({tag, close}) => {
<Button
onPress={onPress}
title={'#' + tag}
- buttonType={{
- text: colors.accent
- }}
+ // buttonType={{
+ // text: colors.accent
+ // }}
type="grayBg"
height={30}
- fontSize={SIZE.sm}
+ fontSize={SIZE.xs + 1}
style={style}
/>
);
diff --git a/apps/mobile/src/components/ActionSheetComponent/topics.js b/apps/mobile/src/components/ActionSheetComponent/topics.js
index c028dc792..292353ebd 100644
--- a/apps/mobile/src/components/ActionSheetComponent/topics.js
+++ b/apps/mobile/src/components/ActionSheetComponent/topics.js
@@ -28,13 +28,13 @@ export const Topics = ({item, close}) => {
key={topic.id}
title={topic.title}
type="grayBg"
- buttonType={{
- text: colors.accent
- }}
+ // buttonType={{
+ // text: colors.accent
+ // }}
height={30}
onPress={open}
icon="bookmark-outline"
- fontSize={SIZE.sm}
+ fontSize={SIZE.xs + 1}
style={{
marginRight: 5,
paddingHorizontal: 0,