From 4a4066e89fe70e24b8db5d3a2dc10c4560427906 Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Fri, 7 Apr 2023 22:50:13 -0700 Subject: [PATCH] [C-2223] Flex on Finnuh (#3196) --- .../screens/profile-screen/ProfileInfo.tsx | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/apps/audius-client/packages/mobile/src/screens/profile-screen/ProfileInfo.tsx b/apps/audius-client/packages/mobile/src/screens/profile-screen/ProfileInfo.tsx index e276c9bddee..33d586a1e8f 100644 --- a/apps/audius-client/packages/mobile/src/screens/profile-screen/ProfileInfo.tsx +++ b/apps/audius-client/packages/mobile/src/screens/profile-screen/ProfileInfo.tsx @@ -21,27 +21,28 @@ import { useSelectProfile } from './selectors' const { getUserHandle } = accountSelectors const useStyles = makeStyles(({ typography, palette, spacing }) => ({ + name: { + ...flexRowCentered(), + marginRight: spacing(2) + }, username: { ...typography.h1, - color: palette.neutral - }, - name: { - ...flexRowCentered() + color: palette.neutral, + flexShrink: 1 }, badges: { marginBottom: 6, - marginLeft: 2 + marginLeft: 2, + flexGrow: 1 }, handleInfo: { marginTop: -6, flexDirection: 'row', alignItems: 'center', alignContent: 'center', - flexWrap: 'wrap', - maxWidth: 200 + flexShrink: 1 }, handle: { - flexShrink: 0, marginRight: spacing(2), textAlignVertical: 'bottom' }, @@ -71,10 +72,15 @@ const useStyles = makeStyles(({ typography, palette, spacing }) => ({ justifyContent: 'space-between', marginBottom: spacing(4) }, + text: { + flexShrink: 1 + }, actionButtons: { flexDirection: 'row', position: 'relative', - alignSelf: 'flex-start' + justifyContent: 'flex-end', + alignSelf: 'flex-start', + flexGrow: 1 }, followButton: { width: 110 @@ -131,9 +137,13 @@ export const ProfileInfo = (props: ProfileInfoProps) => { return ( - + - + {name} { - @{handle} + + @{handle} + {does_follow_current_user ? : null}