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
ui: add bottom border only to inputs
ammarahm-ed02820c304dec
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.jsindex dc400f886..7e49af76e 100644--- a/apps/mobile/src/components/AddNotebookDialog/index.js+++ b/apps/mobile/src/components/AddNotebookDialog/index.js@@ -393,9 +393,10 @@ export class AddNotebookDialog extends React.Component {? colors.accent: colors.nav,color: colors.pri,- width: '85%',- maxWidth: '85%',+ width: '100%',+ maxWidth: '100%',marginTop: 5,+ paddingRight: '15%',},]}placeholder="Add a topic"@@ -478,8 +479,8 @@ const TopicItem = ({item, index, colors, onPress, onDelete}) => {flexDirection: 'row',justifyContent: 'space-between',alignItems: 'center',- borderBottomWidth:1,- borderColor:colors.nav+ borderBottomWidth: 1,+ borderColor: colors.nav,}}><TouchableOpacitystyle={{@@ -488,21 +489,19 @@ const TopicItem = ({item, index, colors, onPress, onDelete}) => {zIndex: 10,position: 'absolute',height: 30,-}}onPress={() => {onPress(item, index);}}/><Text- style={{- fontFamily:WEIGHT.regular,+ style={{+ fontFamily: WEIGHT.regular,fontSize: SIZE.sm,- color:colors.primary,- marginRight:index === 0? 2 : 0- }}- >- {index + 1 + "."}+ color: colors.primary,+ marginRight: index === 0 ? 2 : 0,+ }}>+ {index + 1 + '.'}</Text><TextInputref={topicRef}@@ -518,23 +517,22 @@ const TopicItem = ({item, index, colors, onPress, onDelete}) => {/><View- style={{- width:80,- position:"absolute",- right:0,- alignItems:"center",- flexDirection:"row",- justifyContent:'flex-end'- }}- >- <ActionIcon- onPress={() => {+ style={{+ width: 80,+ position: 'absolute',+ right: 0,+ alignItems: 'center',+ flexDirection: 'row',+ justifyContent: 'flex-end',+ }}>+ <ActionIcon+ onPress={() => {onPress(item, index);}}name="pencil"size={SIZE.lg - 5}color={colors.icon}- />+ /><ActionIcononPress={() => {onDelete(index);@@ -561,7 +559,7 @@ const styles = StyleSheet.create({height: DDS.isTab ? 600 : '100%',maxHeight: DDS.isTab ? 600 : '100%',borderRadius: DDS.isTab ? 5 : 0,- paddingHorizontal: ph,+ paddingHorizontal: 12,paddingVertical: pv,},overlay: {@@ -581,22 +579,22 @@ const styles = StyleSheet.create({},input: {paddingHorizontal: ph,- borderRadius: 5,+ borderRadius: 0,minHeight: 45,fontSize: SIZE.sm,fontFamily: WEIGHT.regular,padding: pv - 2,- borderWidth: 1.5,+ borderBottomWidth: 1,marginTop: 10,marginBottom: 5,},addBtn: {- borderRadius: 5,width: '12%',minHeight: 45,justifyContent: 'center',alignItems: 'center',- borderWidth: 1.5,+ position: 'absolute',+ right: 0,},buttonContainer: {justifyContent: 'space-between',diff --git a/apps/mobile/src/components/AddTopicDialog/index.js b/apps/mobile/src/components/AddTopicDialog/index.jsindex 69fa60ddf..f3a9dd2db 100644--- a/apps/mobile/src/components/AddTopicDialog/index.js+++ b/apps/mobile/src/components/AddTopicDialog/index.js@@ -10,9 +10,10 @@ import {Button} from '../Button';import BaseDialog from '../Dialog/base-dialog';import DialogHeader from '../Dialog/dialog-header';import DialogButtons from '../Dialog/dialog-buttons';-import {opacity, ph, pv, SIZE, WEIGHT} from "../../utils/SizeUtils";-import {db} from "../../utils/DB";-import {DDS} from "../../services/DeviceDetection";+import {opacity, ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';+import {db} from '../../utils/DB';+import {DDS} from '../../services/DeviceDetection';+import Seperator from '../Seperator';export class AddTopicDialog extends React.Component {constructor(props) {@@ -69,7 +70,7 @@ export class AddTopicDialog extends React.Component {<Viewstyle={{...getElevation(5),- width:DDS.isTab? 350 : '80%',+ width: DDS.isTab ? 350 : '80%',maxHeight: 350,borderRadius: 5,backgroundColor: colors.bg,@@ -81,11 +82,13 @@ export class AddTopicDialog extends React.Component {title={toEdit ? 'Edit Topic' : 'Add New Topic'}/>+ <Seperator />+<TextInputref={this.titleRef}style={{padding: pv,- borderWidth: 1.5,+ borderBottomWidth: 1,borderColor: titleFocused ? colors.accent : colors.nav,paddingHorizontal: ph,borderRadius: 5,diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex cda2299fa..304335718 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -1,31 +1,31 @@import React, {Component, createRef} from 'react';-import {Modal, Text, View} from 'react-native';+import {KeyboardAvoidingView, View} from 'react-native';import {TextInput} from 'react-native-gesture-handler';import Share from 'react-native-share';-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {Actions} from '../../provider/Actions';+import {DDS} from '../../services/DeviceDetection';import {- eSendEvent,- eSubscribeEvent,- eUnSubscribeEvent, ToastEvent,+ eSendEvent,+ eSubscribeEvent,+ eUnSubscribeEvent,+ ToastEvent,} from '../../services/EventManager';+import {getElevation} from '../../utils';+import {openEditorAnimation} from '../../utils/Animations';+import {db} from '../../utils/DB';import {eCloseVaultDialog,eOnLoadNote,eOpenVaultDialog,refreshNotesPage,} from '../../utils/Events';-import {openEditorAnimation} from '../../utils/Animations';-import {getElevation} from '../../utils';-import {Button} from '../Button/index';+import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';import BaseDialog from '../Dialog/base-dialog';import DialogButtons from '../Dialog/dialog-buttons';import DialogHeader from '../Dialog/dialog-header';import {updateEvent} from '../DialogManager/recievers';+import Seperator from '../Seperator';import {Toast} from '../Toast';-import {ph, pv, SIZE, WEIGHT} from "../../utils/SizeUtils";-import {db} from "../../utils/DB";-import {DDS} from "../../services/DeviceDetection";const passInputRef = createRef();const confirmPassRef = createRef();@@ -43,6 +43,7 @@ export class VaultDialog extends Component {share: false,passwordsDontMatch: false,deleteNote: false,+ focusIndex: null,};this.password = null;this.confirmPassword = null;@@ -275,7 +276,7 @@ export class VaultDialog extends Component {<DialogHeadertitle={!novault- ? 'Create vault'+ ? 'Create Vault': note.locked? this.state.deleteNote? 'Delete note'@@ -304,13 +305,19 @@ export class VaultDialog extends Component {icon="shield"/>+ <Seperator />+{note.locked || locked || permanant ? (<TextInputref={passInputRef}style={{padding: pv - 5,- borderWidth: 1.5,- borderColor: wrongPassword ? colors.errorText : colors.nav,+ borderBottomWidth: 1.5,+ borderColor: wrongPassword+ ? colors.errorText+ : this.state.focusIndex === 0+ ? colors.accent+ : colors.nav,paddingHorizontal: ph,borderRadius: 5,marginTop: 10,@@ -320,6 +327,11 @@ export class VaultDialog extends Component {onChangeText={(value) => {this.password = value;}}+ onFocus={() => {+ this.setState({+ focusIndex: 0,+ });+ }}secureTextEntryplaceholder="Password"placeholderTextColor={colors.icon}@@ -332,9 +344,11 @@ export class VaultDialog extends Component {ref={passInputRef}style={{padding: pv - 5,- borderWidth: 1.5,+ borderBottomWidth: 1.5,borderColor: passwordsDontMatch? colors.errorText+ : this.state.focusIndex === 1+ ? colors.accent: colors.nav,paddingHorizontal: ph,borderRadius: 5,@@ -344,6 +358,11 @@ export class VaultDialog extends Component {onChangeText={(value) => {this.password = value;}}+ onFocus={() => {+ this.setState({+ focusIndex: 1,+ });+ }}secureTextEntryplaceholder="Password"placeholderTextColor={colors.icon}@@ -353,9 +372,11 @@ export class VaultDialog extends Component {ref={confirmPassRef}style={{padding: pv - 5,- borderWidth: 1.5,+ borderBottomWidth: 1.5,borderColor: passwordsDontMatch? colors.errorText+ : this.state.focusIndex === 2+ ? colors.accent: colors.nav,paddingHorizontal: ph,borderRadius: 5,@@ -364,6 +385,11 @@ export class VaultDialog extends Component {marginTop: 10,}}secureTextEntry+ onFocus={() => {+ this.setState({+ focusIndex: 2,+ });+ }}onChangeText={(value) => {this.confirmPassword = value;if (value !== this.password) {