Moderation UI tweaks for mobile
This commit is contained in:
@@ -75,12 +75,11 @@ export function ContentHider({
|
|||||||
a.justify_start,
|
a.justify_start,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
a.py_md,
|
a.py_md,
|
||||||
a.pl_md,
|
a.px_lg,
|
||||||
a.pr_lg,
|
|
||||||
a.gap_xs,
|
a.gap_xs,
|
||||||
a.rounded_sm,
|
a.rounded_sm,
|
||||||
t.atoms.bg_contrast_25,
|
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,
|
(state.hovered || state.pressed) && t.atoms.bg_contrast_50,
|
||||||
]}>
|
]}>
|
||||||
<desc.icon
|
<desc.icon
|
||||||
|
|||||||
@@ -114,14 +114,14 @@ function ModerationDetailsDialogInner({
|
|||||||
<Text style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
|
<Text style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
|
||||||
{name}
|
{name}
|
||||||
</Text>
|
</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}
|
{description}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
{modcause.type === 'label' && (
|
{modcause.type === 'label' && (
|
||||||
<>
|
<>
|
||||||
<Divider />
|
<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>
|
<Trans>
|
||||||
This label was applied by{' '}
|
This label was applied by{' '}
|
||||||
<InlineLink
|
<InlineLink
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ function PostLabel({cause}: {cause: ModerationCause}) {
|
|||||||
}}
|
}}
|
||||||
style={[a.px_sm, a.py_xs, a.gap_xs]}>
|
style={[a.px_sm, a.py_xs, a.gap_xs]}>
|
||||||
<ButtonIcon icon={desc.icon} position="left" />
|
<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}
|
{desc.name}
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ function ProfileLabel({cause}: {cause: ModerationCause}) {
|
|||||||
}}
|
}}
|
||||||
style={[a.px_sm, a.py_xs, a.gap_xs]}>
|
style={[a.px_sm, a.py_xs, a.gap_xs]}>
|
||||||
<ButtonIcon icon={desc.icon} position="left" />
|
<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}
|
{desc.name}
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user