add max-width to channel description
This commit is contained in:
parent
1edf7e06f9
commit
9b9de07bfe
2 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,7 @@ function ChannelContent(props: Props) {
|
||||||
{showAbout && (
|
{showAbout && (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{description && (
|
{description && (
|
||||||
<div className="media__info-text">
|
<div className="media__info-text media__info-text--small">
|
||||||
<MarkdownPreview content={description} promptLinks />
|
<MarkdownPreview content={description} promptLinks />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -260,11 +260,16 @@
|
||||||
|
|
||||||
.media__info-text {
|
.media__info-text {
|
||||||
font-size: 1.15rem;
|
font-size: 1.15rem;
|
||||||
|
word-break: break-word;
|
||||||
|
|
||||||
&:not(:last-of-type) {
|
&:not(:last-of-type) {
|
||||||
margin-bottom: var(--spacing-vertical-large);
|
margin-bottom: var(--spacing-vertical-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.media__info-text--small {
|
||||||
|
max-width: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
&.media__info-text--center {
|
&.media__info-text--center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue