minor fixes for channel about page

fix #2506

fix #2485
This commit is contained in:
btzr-io 2019-05-29 15:54:47 -06:00
parent d15a85eaaa
commit 155672ee7b
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,6 @@
// @flow // @flow
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import MarkdownPreview from 'component/common/markdown-preview';
type Props = { type Props = {
description: ?string, description: ?string,
@ -16,7 +17,11 @@ function ChannelContent(props: Props) {
{!showAbout && <h2 className="empty">{__('Nothing here yet')}</h2>} {!showAbout && <h2 className="empty">{__('Nothing here yet')}</h2>}
{showAbout && ( {showAbout && (
<Fragment> <Fragment>
{description && <div className="media__info-text">{description}</div>} {description && (
<div className="media__info-text">
<MarkdownPreview content={description} promptLinks />
</div>
)}
{email && ( {email && (
<Fragment> <Fragment>
<div className="media__info-title">{__('Contact')}</div> <div className="media__info-title">{__('Contact')}</div>
@ -26,7 +31,9 @@ function ChannelContent(props: Props) {
{website && ( {website && (
<Fragment> <Fragment>
<div className="media__info-title">{__('Site')}</div> <div className="media__info-title">{__('Site')}</div>
<div className="media__info-text">{website}</div> <div className="media__info-text">
<MarkdownPreview content={website} promptLinks />
</div>
</Fragment> </Fragment>
)} )}
</Fragment> </Fragment>

View file

@ -260,7 +260,6 @@
.media__info-text { .media__info-text {
font-size: 1.15rem; font-size: 1.15rem;
word-break: break-all;
&:not(:last-of-type) { &:not(:last-of-type) {
margin-bottom: var(--spacing-vertical-large); margin-bottom: var(--spacing-vertical-large);