Moderation UI tweaks for mobile

This commit is contained in:
Paul Frazee
2024-03-10 18:44:58 -07:00
parent 3706719033
commit 2e60680296
4 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -75,12 +75,11 @@ export function ContentHider({
a.justify_start,
a.align_center,
a.py_md,
a.pl_md,
a.pr_lg,
a.px_lg,
a.gap_xs,
a.rounded_sm,
t.atoms.bg_contrast_25,
gtMobile && [a.py_md, a.px_lg, a.gap_sm],
gtMobile && [a.gap_sm],
(state.hovered || state.pressed) && t.atoms.bg_contrast_50,
]}>
<desc.icon
@@ -114,14 +114,14 @@ function ModerationDetailsDialogInner({
<Text style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
{name}
</Text>
<Text style={[t.atoms.text, a.text_md, a.mb_md, a.leading_snug]}>
<Text style={[t.atoms.text, a.text_md, a.mb_lg, a.leading_snug]}>
{description}
</Text>
{modcause.type === 'label' && (
<>
<Divider />
<Text style={[t.atoms.text, a.text_md, a.leading_snug, a.mt_md]}>
<Text style={[t.atoms.text, a.text_md, a.leading_snug, a.mt_lg]}>
<Trans>
This label was applied by{' '}
<InlineLink
+1 -1
View File
@@ -55,7 +55,7 @@ function PostLabel({cause}: {cause: ModerationCause}) {
}}
style={[a.px_sm, a.py_xs, a.gap_xs]}>
<ButtonIcon icon={desc.icon} position="left" />
<ButtonText style={[a.flex_1, a.text_left, a.leading_snug]}>
<ButtonText style={[a.text_left, a.leading_snug]}>
{desc.name}
</ButtonText>
</Button>
@@ -55,7 +55,7 @@ function ProfileLabel({cause}: {cause: ModerationCause}) {
}}
style={[a.px_sm, a.py_xs, a.gap_xs]}>
<ButtonIcon icon={desc.icon} position="left" />
<ButtonText style={[a.flex_1, a.text_left, a.leading_snug]}>
<ButtonText style={[a.text_left, a.leading_snug]}>
{desc.name}
</ButtonText>
</Button>