diff options
author | Hailey <me@haileyok.com> | 2024-02-12 12:16:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 12:16:51 -0800 |
commit | b91a6b429a59066cfdff1da92a379f98dedafccf (patch) | |
tree | 974d79300cc7dcdb930346ca1a6f34decaec29f6 /src | |
parent | fe57335b864f2cdd74af1516f022bda7c6191b29 (diff) | |
download | voidsky-b91a6b429a59066cfdff1da92a379f98dedafccf.tar.zst |
remove line height from text input for composer on ios (#2844)
* remove line height from text input for composer * only apply removal to ios
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 3d0d5ab8d..17f9513b7 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 }, }) |