1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

set fix width for metadata item content

This commit is contained in:
Bogdan Fazakas 2021-03-04 18:49:36 +02:00
parent 32ff7af3ce
commit fd619b5b4b
2 changed files with 9 additions and 1 deletions

View File

@ -10,3 +10,9 @@
color: var(--color-secondary);
text-transform: uppercase;
}
.content {
width: 11.5rem;
word-wrap: break-word;
white-space: normal;
}

View File

@ -1,5 +1,7 @@
import React, { ReactElement, ReactNode } from 'react'
import styles from './MetaItem.module.css'
import { syncBuiltinESMExports } from 'module'
import style from 'react-syntax-highlighter/dist/esm/styles/hljs/github-gist'
export default function MetaItem({
title,
@ -11,7 +13,7 @@ export default function MetaItem({
return (
<div className={styles.metaItem}>
<h3 className={styles.title}>{title}</h3>
{content}
<div className={styles.content}>{content}</div>
</div>
)
}