fix PWI label overflow + center loader (#3268)

This commit is contained in:
Samuel Newman
2024-03-19 16:01:27 +00:00
committed by GitHub
parent 851d13b24d
commit 213d962b37
+5 -2
View File
@@ -378,7 +378,9 @@ export function ModerationScreenInner({
</Text> </Text>
{isLabelersLoading ? ( {isLabelersLoading ? (
<Loader /> <View style={[a.w_full, a.align_center, a.p_lg]}>
<Loader size="xl" />
</View>
) : labelersError || !labelers ? ( ) : labelersError || !labelers ? (
<View style={[a.p_lg, a.rounded_sm, t.atoms.bg_contrast_25]}> <View style={[a.p_lg, a.rounded_sm, t.atoms.bg_contrast_25]}>
<Text> <Text>
@@ -513,11 +515,12 @@ function PwiOptOut() {
value={isOptedOut} value={isOptedOut}
onChange={onToggleOptOut} onChange={onToggleOptOut}
name="logged_out_visibility" name="logged_out_visibility"
style={a.flex_1}
label={_( label={_(
msg`Discourage apps from showing my account to logged-out users`, msg`Discourage apps from showing my account to logged-out users`,
)}> )}>
<Toggle.Switch /> <Toggle.Switch />
<Toggle.Label style={[a.text_md]}> <Toggle.Label style={[a.text_md, a.flex_1]}>
<Trans> <Trans>
Discourage apps from showing my account to logged-out users Discourage apps from showing my account to logged-out users
</Trans> </Trans>