user page style tweak

This commit is contained in:
Kalle (Sendou)
2020-11-05 15:05:38 +02:00
parent dcc3fe34ee
commit 1cd215895c
3 changed files with 6 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ const extendedTheme = extendTheme({
// 5) form label bolded
// 6) dropdown border + focus colors // especially in light blends in a lot
// 7) disable dark mode <-> light mode transformation time
// 8) divider color (light)
components: {
Button: {
defaultProps: {

View File

@@ -1,7 +1,6 @@
import { Avatar, Box, Flex, Heading, IconButton } from "@chakra-ui/core";
import { getEmojiFlag } from "countries-list";
import { GetUserByIdentifierQuery } from "generated/graphql";
import Section from "lib/components/Section";
import WeaponImage from "lib/components/WeaponImage";
import { useTranslation } from "lib/useMockT";
import { useMyTheme } from "lib/useMyTheme";
@@ -31,8 +30,7 @@ const AvatarWithInfo: React.FC<AvatarWithInfoProps> = ({ user }) => {
return (
<>
<Section
display="flex"
<Flex
flexDir="column"
flexWrap="wrap"
alignItems="center"
@@ -129,7 +127,7 @@ const AvatarWithInfo: React.FC<AvatarWithInfoProps> = ({ user }) => {
</Flex>
</Flex>
</Flex>
</Section>
</Flex>
</>
);
};

View File

@@ -1,4 +1,4 @@
import { Box, Button } from "@chakra-ui/core";
import { Box, Button, Divider } from "@chakra-ui/core";
import { t, Trans } from "@lingui/macro";
import { GetUserByIdentifierQuery } from "generated/graphql";
import Breadcrumbs from "lib/components/Breadcrumbs";
@@ -34,8 +34,9 @@ const Profile: React.FC<Props> = ({ user, identifier }) => {
identifier={identifier}
/>
)}
<Divider my="2em" />
{user.profile?.bio && (
<Box my="2em">
<Box>
<Markdown value={user.profile.bio} />
</Box>
)}