remove line height from text input for composer on ios (#2844)

* remove line height from text input for composer

* only apply removal to ios
zio/stable
Hailey 2024-02-12 12:16:51 -08:00 committed by GitHub
parent fe57335b86
commit b91a6b429a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import {useTheme} from 'lib/ThemeContext'
import {isUriImage} from 'lib/media/util' import {isUriImage} from 'lib/media/util'
import {downloadAndResize} from 'lib/media/manip' import {downloadAndResize} from 'lib/media/manip'
import {POST_IMG_MAX} from 'lib/constants' import {POST_IMG_MAX} from 'lib/constants'
import {isIOS} from 'platform/detection'
export interface TextInputRef { export interface TextInputRef {
focus: () => void focus: () => void
@ -252,6 +253,7 @@ const styles = StyleSheet.create({
fontSize: 18, fontSize: 18,
letterSpacing: 0.2, letterSpacing: 0.2,
fontWeight: '400', 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
}, },
}) })