From 3481d165770cd09422133b4b704483be43bb8cba Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 18 Dec 2024 18:23:40 +0000 Subject: [PATCH] Remove header subtitle from list-related screens (#7154) * rm subtitle, add admonition * rm top border from empty state * Minimal approach * Revert uneeded change * Even more minimal --------- Co-authored-by: Eric Bailey --- .../StarterPack/ProfileStarterPacks.tsx | 2 +- src/view/com/lists/MyLists.tsx | 51 +++++++++++++++---- src/view/com/util/EmptyState.tsx | 21 +++----- src/view/screens/Lists.tsx | 3 -- src/view/screens/ModerationModlists.tsx | 5 -- 5 files changed, 48 insertions(+), 34 deletions(-) diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 5f58a19df3..64307070bf 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -228,7 +228,7 @@ function Empty() { a.justify_between, a.gap_lg, a.shadow_lg, - {marginTop: 2}, + {marginTop: 1}, ]}> { if (item === EMPTY) { return ( - + + + + + + {filter === 'curate' && ( + + Public, sharable lists which can be used to drive feeds. + + )} + {filter === 'mod' && ( + + Public, sharable lists of users to mute or block in bulk. + + )} + + ) } else if (item === ERROR_ITEM) { return ( @@ -118,7 +149,7 @@ export function MyLists({ ) }, - [renderItem, t.atoms.border_contrast_low, _, error, onRefresh], + [t, renderItem, error, onRefresh, filter], ) if (inline) { diff --git a/src/view/com/util/EmptyState.tsx b/src/view/com/util/EmptyState.tsx index 7f16329365..a6352c2fef 100644 --- a/src/view/com/util/EmptyState.tsx +++ b/src/view/com/util/EmptyState.tsx @@ -8,7 +8,6 @@ import { import {usePalette} from '#/lib/hooks/usePalette' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {UserGroupIcon} from '#/lib/icons' -import {isWeb} from '#/platform/detection' import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth' import {Text} from './text/Text' @@ -25,16 +24,11 @@ export function EmptyState({ }) { const pal = usePalette('default') const {isTabletOrDesktop} = useWebMediaQueries() - const iconSize = isTabletOrDesktop ? 80 : 64 + const iconSize = isTabletOrDesktop ? 64 : 48 return ( + style={[isTabletOrDesktop && {paddingRight: 20}, style]}> Lists - - Public, shareable lists which can drive feeds. -