Skip to content

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

change note ui when being edited

ammarahm-ed56b2aaa8c683
diff --git a/apps/mobile/src/components/SelectionWrapper/backfill.js b/apps/mobile/src/components/SelectionWrapper/backfill.js
index 017b4a028..0513f13b5 100644
--- a/apps/mobile/src/components/SelectionWrapper/backfill.js
+++ b/apps/mobile/src/components/SelectionWrapper/backfill.js
@@ -13,69 +13,20 @@ export const Filler = ({item, background}) => {
const currentEditingNote = useEditorStore(state => state.currentEditingNote);
- const color = item.color || 'accent';
+ const color = 'gray';
return (
<View
style={{
position: 'absolute',
width: '110%',
- height: '110%',
- paddingVertical: '3.5%',
- paddingHorizontal: '5%',
- alignItems: 'flex-end',
- justifyContent: 'flex-end',
+ height: '150%',
+ backgroundColor:currentEditingNote === item.id ? hexToRGBA(colors[color], 0.12) : null,
+ borderLeftWidth:5,
+ borderLeftColor:currentEditingNote === item.id ? colors[item.color || 'accent'] : 'transparent'
}}>
- <View
- style={{
- flexDirection: 'row',
- }}>
- {item.conflicted ? (
- <View
- style={{
- backgroundColor: hexToRGBA(colors.red, 0.12),
- paddingHorizontal: 3,
- paddingVertical: 2,
- borderRadius: 3,
- marginRight: 10,
- flexDirection: 'row',
- alignItems: 'center',
- justifyContent: 'space-between',
- }}>
- <Icon name="alert-circle" size={SIZE.xxs} color={colors.red} />
- <Heading
- size={SIZE.xxs}
- style={{
- color: colors.red,
- marginLeft: 2,
- }}>
- CONFLICTS
- </Heading>
- </View>
- ) : null}
-
- {currentEditingNote === item.id ? (
- <View
- style={{
- backgroundColor: hexToRGBA(colors[color], 0.12),
- paddingHorizontal: 3,
- paddingVertical: 2,
- borderRadius: 3,
- marginRight: 10,
- flexDirection: 'row',
- alignItems: 'center',
- justifyContent: 'space-between',
- }}>
- <Icon name="pencil-outline" size={SIZE.xxs} color={colors[color]} />
- <Heading
- size={SIZE.xxs}
- style={{marginLeft: 2}}
- color={colors[color]}>
- EDITING NOW
- </Heading>
- </View>
- ) : null}
- </View>
+
+
</View>
);
};