profile: allow line breaks in description

This commit is contained in:
Matilde Park 2021-01-28 18:33:50 -05:00
parent e37795dfa6
commit 53d416cf16

View File

@ -7,6 +7,7 @@ import {
Text, Text,
Row, Row,
Button, Button,
Col
} from "@tlon/indigo-react"; } from "@tlon/indigo-react";
import { AsyncButton } from "~/views/components/AsyncButton"; import { AsyncButton } from "~/views/components/AsyncButton";
import RichText from "~/views/components/RichText"; import RichText from "~/views/components/RichText";
@ -37,16 +38,17 @@ export function ViewProfile(props: any) {
<Text mono color="darkGray">{ship}</Text> <Text mono color="darkGray">{ship}</Text>
</Center> </Center>
</Row> </Row>
<Row <Col
pb={2} pb={2}
alignItems="center" alignItems="center"
justifyContent="center"
width="100%"> width="100%">
<Center width="100%"> <Center flexDirection="column" maxWidth='32rem'>
<RichText> <RichText width='100%'>
{(contact?.bio ? contact.bio : "")} {(contact?.bio ? contact.bio : "")}
</RichText> </RichText>
</Center> </Center>
</Row> </Col>
{ (ship === `~${window.ship}`) ? ( { (ship === `~${window.ship}`) ? (
<Row <Row
pb={2} pb={2}