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

data token display tweaks

This commit is contained in:
Matthias Kretschmann 2020-09-11 17:53:32 +02:00
parent b03955d618
commit a37aff907a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 20 additions and 12 deletions

View File

@ -32,7 +32,7 @@ export default function Coin({
<h4 className={styles.tokenName}> <h4 className={styles.tokenName}>
{datatokenOptions?.name || 'Data Token'} {datatokenOptions?.name || 'Data Token'}
{datatokenOptions?.name && generateName && ( {datatokenOptions?.name && typeof generateName === 'function' && (
<RefreshName generateName={generateName} /> <RefreshName generateName={generateName} />
)} )}
</h4> </h4>

View File

@ -2,17 +2,18 @@
composes: content from './index.module.css'; composes: content from './index.module.css';
} }
.form { @media (min-width: 55rem) {
max-width: 12rem; .form {
margin-left: auto; max-width: 12rem;
margin-right: auto; margin-left: auto;
}
} }
.grid { .grid {
margin-top: var(--spacer); margin-top: var(--spacer);
display: grid; display: grid;
gap: var(--spacer); gap: var(--spacer);
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
justify-content: center; justify-content: center;
} }
@ -21,12 +22,18 @@
} }
.datatoken { .datatoken {
margin-top: calc(var(--spacer) / 6);
color: var(--color-secondary); color: var(--color-secondary);
font-size: var(--font-size-small); font-size: var(--font-size-small);
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
white-space: nowrap; }
.datatoken h4 {
font-size: var(--font-size-small);
color: var(--color-secondary);
margin: 0;
} }
.datatoken strong { .datatoken strong {
color: var(--brand-grey); color: var(--brand-grey-dark);
} }

View File

@ -39,10 +39,11 @@ export default function Fixed({
</div> </div>
{datatokenOptions && ( {datatokenOptions && (
<div className={styles.datatoken}> <div className={styles.datatoken}>
<strong>Data Token</strong> <h4>
<RefreshName generateName={generateName} /> Data Token <RefreshName generateName={generateName} />
<br /> </h4>
{datatokenOptions?.name} | {datatokenOptions?.symbol} <strong>{datatokenOptions?.name}</strong> {' '}
<strong>{datatokenOptions?.symbol}</strong>
</div> </div>
)} )}
</div> </div>