Skip to content

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

fix typography on ios

ammarahm-edadce55dac896
diff --git a/apps/mobile/src/components/Typography/Heading.js b/apps/mobile/src/components/Typography/Heading.js
index ccc1572ee..cb28e927e 100644
--- a/apps/mobile/src/components/Typography/Heading.js
+++ b/apps/mobile/src/components/Typography/Heading.js
@@ -14,7 +14,7 @@ import {SIZE, WEIGHT} from '../../utils/SizeUtils';
*
* @param {TextType | restTypes} props all props
*/
-const Heading = ({color, size, style, ...restProps}) => {
+const Heading = ({color, size= SIZE.xl, style, ...restProps}) => {
const [state] = useTracked();
const {colors} = state;
@@ -26,8 +26,8 @@ const Heading = ({color, size, style, ...restProps}) => {
fontFamily: WEIGHT.bold,
fontSize: size || SIZE.xl,
color: color || colors.heading,
- lineHeight:
- Platform.OS === 'ios' ? (size ? size + 2 : SIZE.xl + 2) : null,
+ paddingBottom:
+ Platform.OS === 'ios' ? size*0.25: null,
},
style,
]}></Text>
diff --git a/apps/mobile/src/components/Typography/Paragraph.js b/apps/mobile/src/components/Typography/Paragraph.js
index 8d14fe9bb..8a0c8b538 100644
--- a/apps/mobile/src/components/Typography/Paragraph.js
+++ b/apps/mobile/src/components/Typography/Paragraph.js
@@ -14,7 +14,7 @@ import {SIZE, WEIGHT} from '../../utils/SizeUtils';
*
* @param {TextType | restTypes} props all props
*/
-const Paragraph = ({color, size, style, ...restProps}) => {
+const Paragraph = ({color, size = SIZE.sm, style, ...restProps}) => {
const [state] = useTracked();
const {colors} = state;
@@ -27,8 +27,8 @@ const Paragraph = ({color, size, style, ...restProps}) => {
fontSize: size || SIZE.sm,
color: color || colors.pri,
fontWeight: '400',
- lineHeight:
- Platform.OS === 'ios' ? (size ? size + 2 : SIZE.sm + 2) : null,
+ paddingBottom:
+ Platform.OS === 'ios' ? size*0.25: null,
},
style,
]}></Text>