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
reduce sizes of list format items
ammarahm-edf8b211a3911c
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/listformat.js b/apps/mobile/src/views/Editor/tiny/toolbar/listformat.jsindex f4684080a..4310717e4 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/listformat.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/listformat.js@@ -4,6 +4,7 @@ import Heading from '../../../../components/Typography/Heading';import {useTracked} from '../../../../provider';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';+import Paragraph from '../../../../components/Typography/Paragraph';const ToolbarListFormat = ({selected, formatValue, format}) => {const [state] = useTracked();const {colors} = state;@@ -13,26 +14,27 @@ const ToolbarListFormat = ({selected, formatValue, format}) => {'lower-greek': ['α.', 'β.', 'γ.'],'lower-roman': ['i.', 'ii.', 'iii.'],'upper-alpha': ['A.', 'B.', 'C.'],- 'upper-roman': ['I.', 'II.', 'III.'],+ 'upper-roman': ['I.', 'II.', 'III.']};- const list = format === 'ol' ? ordered_lists[formatValue] : ["1", "2", "3"];+ const list = format === 'ol' ? ordered_lists[formatValue] : ['1', '2', '3'];return (<View>- {list?.map((item) => (+ {list?.map(item => (<Viewkey={item}style={{flexDirection: 'row',alignItems: 'center',- marginBottom: format === 'ol' ? 0 : 2,- marginTop: format === 'ol' || format === 'cl' ? 0 : 2,+ marginBottom: format === 'ol' ? 0 : 1,+ marginTop: format === 'ol' || format === 'cl' ? 0 : 1}}>{format === 'ol' ? (<Headingstyle={{- width: 10,+ width: 9,+ height: 7}}color={selected && colors.accent}size={6}>@@ -42,10 +44,11 @@ const ToolbarListFormat = ({selected, formatValue, format}) => {<Iconstyle={{width: 10,- color: selected ? colors.accent: colors.pri,+ color: selected ? colors.accent : colors.pri,+ height: 6}}size={6}- name="checkbox-marked"+ name="checkbox-marked-outline"/>) : (<View@@ -61,6 +64,7 @@ const ToolbarListFormat = ({selected, formatValue, format}) => {width: 4,height: 4,marginRight: 5,+ marginVertical: 0.5}}/>)}@@ -68,8 +72,9 @@ const ToolbarListFormat = ({selected, formatValue, format}) => {<Viewstyle={{width: 18,- height: 2,+ height: 1.5,backgroundColor: selected ? colors.accent : colors.pri,+ marginTop: format === 'ol' ? 2 : 0}}/></View>