Fix alignment

This commit is contained in:
Eric Bailey
2024-07-23 15:36:13 -05:00
parent 2fe2534f88
commit d7426d45e2
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ function MutedWordsInner() {
onChange={setExcludeFollowing}> onChange={setExcludeFollowing}>
<TargetToggle> <TargetToggle>
<View style={[a.flex_1, a.flex_row, a.align_center, a.gap_sm]}> <View style={[a.flex_1, a.flex_row, a.align_center, a.gap_sm]}>
<Toggle.Radio /> <Toggle.Checkbox />
<Toggle.LabelText style={[a.flex_1, a.leading_tight]}> <Toggle.LabelText style={[a.flex_1, a.leading_tight]}>
<Trans>Exclude users you follow</Trans> <Trans>Exclude users you follow</Trans>
</Toggle.LabelText> </Toggle.LabelText>
+8 -3
View File
@@ -3,9 +3,10 @@ import {Pressable, View, ViewStyle} from 'react-native'
import {HITSLOP_10} from 'lib/constants' import {HITSLOP_10} from 'lib/constants'
import { import {
android,
atoms as a, atoms as a,
flatten, flatten,
native, ios,
TextStyleProp, TextStyleProp,
useTheme, useTheme,
ViewStyleProp, ViewStyleProp,
@@ -244,14 +245,18 @@ export function LabelText({
<Text <Text
style={[ style={[
a.font_bold, a.font_bold,
a.leading_tight,
{ {
userSelect: 'none', userSelect: 'none',
color: disabled color: disabled
? t.atoms.text_contrast_low.color ? t.atoms.text_contrast_low.color
: t.atoms.text_contrast_high.color, : t.atoms.text_contrast_high.color,
}, },
native({ ios({
paddingTop: 3, paddingTop: 2,
}),
android({
paddingTop: 1,
}), }),
flatten(style), flatten(style),
]}> ]}>