Edit profile styling improvements

This commit is contained in:
Alec LaLonde
2023-07-19 14:41:45 -06:00
parent f2fea89c2c
commit a94334fc87
2 changed files with 10 additions and 6 deletions

View File

@@ -296,7 +296,7 @@ export const EditProfileModal: React.FC<EditProfileModalProps> = ({
<ModalCloseButton />
<ModalBody>
<FormProvider {...formMethods}>
<Grid templateColumns={['1fr']} gap={6} p={8}>
<Grid templateColumns={['1fr']} gap={6} p={[0, 8]}>
<GridItem flex={1} alignItems="center" h="10em">
<EditAvatarImage
ref={imageFieldRefs.profileImageURL}
@@ -331,7 +331,7 @@ export const EditProfileModal: React.FC<EditProfileModalProps> = ({
<FormHelperText color="white">
{nameRemaining} characters left.
</FormHelperText>
<Box minH="3em">
<Box>
<FormErrorMessage>
{errors.name?.message?.toString()}
</FormErrorMessage>
@@ -349,8 +349,10 @@ export const EditProfileModal: React.FC<EditProfileModalProps> = ({
<InputGroup w="100%">
<InputLeftElement
pointerEvents="none"
pl={130}
children=" https://metagame.wtf/players/"
children="https://metagame.wtf/players/"
width="auto"
paddingLeft="1em"
color="whiteAlpha.700"
/>
<Input
w="100%"
@@ -406,7 +408,7 @@ export const EditProfileModal: React.FC<EditProfileModalProps> = ({
What is your weekly availability for any kind of freelance
work?
</FormHelperText>
<InputGroup w="100%">
<InputGroup w="5em">
<InputLeftElement>
<Text as="span" role="img" aria-label="clock">
🕛

View File

@@ -133,13 +133,14 @@ export const EditBackgroundImage = forwardRef<
as="label"
h="full"
w="full"
ml={3}
ml={[0, 3]}
htmlFor="upload-bg-image"
border="1px"
color="white"
borderColor="blue.600"
borderRadius="4px"
display="flex"
flexDirection={['column', 'row']}
alignItems="center"
justifyContent="center"
>
@@ -186,6 +187,7 @@ export const EditBackgroundImage = forwardRef<
size="md"
fontSize="sm"
ml={3}
mt={[3, 0]}
color="white"
rounded="md"
_hover={{ borderColor: 'blue.700' }}