Skip to content

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

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.js
index 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 => (
<View
key={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' ? (
<Heading
style={{
- width: 10,
+ width: 9,
+ height: 7
}}
color={selected && colors.accent}
size={6}>
@@ -42,10 +44,11 @@ const ToolbarListFormat = ({selected, formatValue, format}) => {
<Icon
style={{
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}) => {
<View
style={{
width: 18,
- height: 2,
+ height: 1.5,
backgroundColor: selected ? colors.accent : colors.pri,
+ marginTop: format === 'ol' ? 2 : 0
}}
/>
</View>