diff options
author | Eric Bailey <git@esb.lol> | 2024-09-20 17:29:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 17:29:58 -0500 |
commit | 7e2456b906563464c8e43867e62f07df9109bc2b (patch) | |
tree | 8dfca319f8b96190b7e83eb9ba37b17c24a2cb46 /src/components/moderation | |
parent | 4161e233200cc1d111faef47f05881e44ab4e731 (diff) | |
download | voidsky-7e2456b906563464c8e43867e62f07df9109bc2b.tar.zst |
[Neue] Font weights (#5442)
* Align all font weights * Only load necessary fonts * Also comment out from hook
Diffstat (limited to 'src/components/moderation')
-rw-r--r-- | src/components/moderation/ContentHider.tsx | 4 | ||||
-rw-r--r-- | src/components/moderation/LabelPreference.tsx | 3 | ||||
-rw-r--r-- | src/components/moderation/ScreenHider.tsx | 14 |
3 files changed, 7 insertions, 14 deletions
diff --git a/src/components/moderation/ContentHider.tsx b/src/components/moderation/ContentHider.tsx index f2d13f642..bf9bae517 100644 --- a/src/components/moderation/ContentHider.tsx +++ b/src/components/moderation/ContentHider.tsx @@ -94,7 +94,7 @@ export function ContentHider({ a.text_left, a.font_bold, a.leading_snug, - gtMobile && [a.font_semibold], + gtMobile && [a.font_bold], t.atoms.text_contrast_medium, web({ marginBottom: 1, @@ -107,7 +107,7 @@ export function ContentHider({ style={[ a.font_bold, a.leading_snug, - gtMobile && [a.font_semibold], + gtMobile && [a.font_bold], t.atoms.text_contrast_high, web({ marginBottom: 1, diff --git a/src/components/moderation/LabelPreference.tsx b/src/components/moderation/LabelPreference.tsx index 78b50ff8b..d6dc45d1a 100644 --- a/src/components/moderation/LabelPreference.tsx +++ b/src/components/moderation/LabelPreference.tsx @@ -236,8 +236,7 @@ export function LabelerLabelPreference({ <View style={[a.flex_row, a.gap_xs, a.align_center, a.mt_xs]}> <CircleInfo size="sm" fill={t.atoms.text_contrast_high.color} /> - <Text - style={[t.atoms.text_contrast_medium, a.font_semibold, a.italic]}> + <Text style={[t.atoms.text_contrast_medium, a.font_bold, a.italic]}> {adultDisabled ? ( <Trans>Adult content is disabled.</Trans> ) : isGlobalLabel ? ( diff --git a/src/components/moderation/ScreenHider.tsx b/src/components/moderation/ScreenHider.tsx index f855d6333..5680b60c2 100644 --- a/src/components/moderation/ScreenHider.tsx +++ b/src/components/moderation/ScreenHider.tsx @@ -10,9 +10,9 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' +import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {useModerationCauseDescription} from '#/lib/moderation/useModerationCauseDescription' -import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' -import {NavigationProp} from 'lib/routes/types' +import {NavigationProp} from '#/lib/routes/types' import {CenteredView} from '#/view/com/util/Views' import {atoms as a, useTheme, web} from '#/alf' import {Button, ButtonText} from '#/components/Button' @@ -86,13 +86,7 @@ export function ScreenHider({ </View> </View> <Text - style={[ - a.text_4xl, - a.font_semibold, - a.text_center, - a.mb_md, - t.atoms.text, - ]}> + style={[a.text_4xl, a.font_bold, a.text_center, a.mb_md, t.atoms.text]}> {isNoPwi ? ( <Trans>Sign-in Required</Trans> ) : ( @@ -118,7 +112,7 @@ export function ScreenHider({ <Text style={[ a.text_lg, - a.font_semibold, + a.font_bold, a.leading_snug, t.atoms.text, a.ml_xs, |