From 877eab0fe327ad4bd30a871c4cb605e79243d0d0 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 19 Mar 2024 11:04:41 -0500 Subject: Fix space on bottom of mod screen (#3266) * Fix space on bottom of mod screen * fix PWI label overflow + center loader (#3268) --------- Co-authored-by: Samuel Newman --- src/screens/Moderation/index.tsx | 451 +++++++++++++++++++-------------------- 1 file changed, 225 insertions(+), 226 deletions(-) (limited to 'src/screens/Moderation/index.tsx') diff --git a/src/screens/Moderation/index.tsx b/src/screens/Moderation/index.tsx index d0bfaeade..50e5ee3b9 100644 --- a/src/screens/Moderation/index.tsx +++ b/src/screens/Moderation/index.tsx @@ -205,19 +205,111 @@ export function ModerationScreenInner({ ) return ( - - + + Moderation tools + + + + + + + {state => ( + + )} + + + + {state => ( + + )} + + + + {state => ( + + )} + + + + - - Moderation tools - + Content filters + + + {ageNotSet && ( + <> + + + + + )} - - - - {state => ( - - )} - - - - {state => ( - - )} - - - - {state => ( - + - )} - - - - - Content filters - - - - {ageNotSet && ( + a.py_lg, + a.px_lg, + a.flex_row, + a.align_center, + a.justify_between, + ]}> + + Enable adult content + + + + + {adultContentEnabled ? ( + Enabled + ) : ( + Disabled + )} + + + + + + + + )} + {!isUnderage && adultContentEnabled && ( <> - - - + + + + + + )} - - {!ageNotSet && !isUnderage && ( - <> - - - Enable adult content - - - - - {adultContentEnabled ? ( - Enabled - ) : ( - Disabled - )} - - - - - - - - )} - {!isUnderage && adultContentEnabled && ( - <> - - - - - - - - )} - - + + - - Advanced - + + Advanced + - {isLabelersLoading ? ( - - ) : labelersError || !labelers ? ( - - - - We were unable to load your configured labelers at this time. - - - - ) : ( - - {labelers.map((labeler, i) => { - return ( - - {i !== 0 && } - - {state => ( - - - - - - - - )} - - - ) - })} - - )} + {isLabelersLoading ? ( + + + + ) : labelersError || !labelers ? ( + + + + We were unable to load your configured labelers at this time. + + + + ) : ( + + {labelers.map((labeler, i) => { + return ( + + {i !== 0 && } + + {state => ( + + + + + + + + )} + + + ) + })} + + )} - - Logged-out visibility - + + Logged-out visibility + - + - - - + + ) } @@ -517,11 +515,12 @@ function PwiOptOut() { value={isOptedOut} onChange={onToggleOptOut} name="logged_out_visibility" + style={a.flex_1} label={_( msg`Discourage apps from showing my account to logged-out users`, )}> - + Discourage apps from showing my account to logged-out users -- cgit 1.4.1