a possible tweak

This commit is contained in:
Hailey
2024-10-14 17:59:09 -07:00
parent a8fcc1d1a1
commit 12b41fd162
+19 -20
View File
@@ -100,15 +100,24 @@ function DialogInner({
<Trans>Add a content warning</Trans> <Trans>Add a content warning</Trans>
</Text> </Text>
{!hasMedia ? (
<View>
<Text style={t.atoms.text_contrast_medium}>
<Trans>
There are no self-labels that can be applied to this post.
</Trans>
</Text>
</View>
) : (
<>
<View style={[a.p_sm, t.atoms.border_contrast_high]}>
<View <View
style={[ style={[
a.border, a.flex_row,
a.p_md, a.align_center,
t.atoms.border_contrast_high, a.justify_between,
a.rounded_md, a.pb_sm,
]}> ]}>
<View
style={[a.flex_row, a.align_center, a.justify_between, a.pb_sm]}>
<Text style={[a.font_bold, a.text_lg]}> <Text style={[a.font_bold, a.text_lg]}>
<Trans>Adult Content</Trans> <Trans>Adult Content</Trans>
</Text> </Text>
@@ -127,8 +136,6 @@ function DialogInner({
</ButtonText> </ButtonText>
</Button> </Button>
</View> </View>
{hasMedia ? (
<>
<ToggleButton.Group <ToggleButton.Group
label={_(msg`Adult Content labels`)} label={_(msg`Adult Content labels`)}
values={labels} values={labels}
@@ -163,24 +170,16 @@ function DialogInner({
) : labels.includes('porn') ? ( ) : labels.includes('porn') ? (
<Trans>Sexual activity or erotic nudity.</Trans> <Trans>Sexual activity or erotic nudity.</Trans>
) : ( ) : (
<Trans>If none are selected, suitable for all ages.</Trans>
)}
</Text>
</>
) : (
<View>
<Text style={t.atoms.text_contrast_medium}>
<Trans> <Trans>
<Text style={[a.font_bold, t.atoms.text_contrast_medium]}> If none are selected, this post is suitable for all
Not Applicable. audiences.
</Text>{' '}
This warning is only available for posts with media attached.
</Trans> </Trans>
)}
</Text> </Text>
</View> </View>
</>
)} )}
</View> </View>
</View>
<Button <Button
label={_(msg`Done`)} label={_(msg`Done`)}