diff options
Diffstat (limited to 'src/view/com/composer')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 5 | ||||
-rw-r--r-- | src/view/com/composer/Prompt.tsx | 16 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 2618c51a3..c8bb8d726 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -90,6 +90,7 @@ import {SuggestedLanguage} from './select-language/SuggestedLanguage' import {TextInput, TextInputRef} from './text-input/TextInput' import {ThreadgateBtn} from './threadgate/ThreadgateBtn' import {useExternalLinkFetch} from './useExternalLinkFetch' +import hairlineWidth = StyleSheet.hairlineWidth type CancelRef = { onPressCancel: () => void @@ -657,7 +658,7 @@ const styles = StyleSheet.create({ marginBottom: 6, }, errorIcon: { - borderWidth: 1, + borderWidth: hairlineWidth, borderColor: colors.red4, color: colors.red4, borderRadius: 30, @@ -692,6 +693,6 @@ const styles = StyleSheet.create({ paddingLeft: 15, paddingRight: 20, alignItems: 'center', - borderTopWidth: 1, + borderTopWidth: hairlineWidth, }, }) diff --git a/src/view/com/composer/Prompt.tsx b/src/view/com/composer/Prompt.tsx index 16d1b6fb9..54defb101 100644 --- a/src/view/com/composer/Prompt.tsx +++ b/src/view/com/composer/Prompt.tsx @@ -1,13 +1,15 @@ import React from 'react' import {StyleSheet, TouchableOpacity} from 'react-native' -import {UserAvatar} from '../util/UserAvatar' -import {Text} from '../util/text/Text' -import {usePalette} from 'lib/hooks/usePalette' -import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' -import {Trans, msg} from '@lingui/macro' +import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {useSession} from '#/state/session' + import {useProfileQuery} from '#/state/queries/profile' +import {useSession} from '#/state/session' +import {usePalette} from 'lib/hooks/usePalette' +import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' +import {Text} from '../util/text/Text' +import {UserAvatar} from '../util/UserAvatar' +import hairlineWidth = StyleSheet.hairlineWidth export function ComposePrompt({onPressCompose}: {onPressCompose: () => void}) { const {currentAccount} = useSession() @@ -47,7 +49,7 @@ const styles = StyleSheet.create({ paddingBottom: 10, flexDirection: 'row', alignItems: 'center', - borderTopWidth: 1, + borderTopWidth: hairlineWidth, }, labelMobile: { paddingLeft: 12, |