From b91a6b429a59066cfdff1da92a379f98dedafccf Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 12 Feb 2024 12:16:51 -0800 Subject: [PATCH] remove line height from text input for composer on ios (#2844) * remove line height from text input for composer * only apply removal to ios --- src/view/com/composer/text-input/TextInput.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 3d0d5ab8..17f9513b 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -28,6 +28,7 @@ import {useTheme} from 'lib/ThemeContext' import {isUriImage} from 'lib/media/util' import {downloadAndResize} from 'lib/media/manip' import {POST_IMG_MAX} from 'lib/constants' +import {isIOS} from 'platform/detection' export interface TextInputRef { focus: () => void @@ -252,6 +253,7 @@ const styles = StyleSheet.create({ fontSize: 18, letterSpacing: 0.2, fontWeight: '400', - lineHeight: 23.4, // 1.3*16 + // This is broken on ios right now, so don't set it there. + lineHeight: isIOS ? undefined : 23.4, // 1.3*16 }, })