1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

respect line breaks in description

This commit is contained in:
Matthias Kretschmann 2019-02-15 14:24:42 +01:00
parent aedfcd9ca0
commit 0a5289be20
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,11 @@
} }
} }
.description {
// respect line breaks from textarea
white-space: pre-line;
}
.meta { .meta {
border-top: 1px solid $brand-grey-lighter; border-top: 1px solid $brand-grey-lighter;
border-bottom: 1px solid $brand-grey-lighter; border-bottom: 1px solid $brand-grey-lighter;

View File

@ -43,7 +43,7 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
</div> </div>
</aside> </aside>
<div>{base.description}</div> <div className={styles.description}>{base.description}</div>
<ul className={styles.meta}> <ul className={styles.meta}>
<li> <li>