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

Profile tweaks and fixes (#278)

* output emoji beside name

* spacing tweaks, fix tooltip arrow
This commit is contained in:
Matthias Kretschmann 2020-12-01 13:16:19 +01:00 committed by GitHub
parent fdf518401c
commit 26576fd188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 20 deletions

View File

@ -7,7 +7,8 @@
@media (min-width: 40rem) {
.profile {
margin: calc(var(--spacer) / 4);
margin: calc(var(--spacer) / 8);
margin-bottom: calc(var(--spacer) / 4);
}
}

View File

@ -41,8 +41,8 @@ export default function Publisher({
if (!profile) return
setProfile(profile)
const { name } = profile
name && setName(name)
const { name, emoji } = profile
name && setName(`${emoji || ''} ${name}`)
}
get3Box()

View File

@ -43,7 +43,7 @@
}
.content[data-placement*='left'] > .arrow {
right: -4px;
right: 6px;
}
.content[data-placement*='right'] > .arrow {

View File

@ -1,5 +1,5 @@
.teaser {
max-width: 50rem;
max-width: 40rem;
height: 100%;
}
@ -29,15 +29,13 @@
}
.title {
line-height: 1.3 !important;
font-size: var(--font-size-large);
margin-top: calc(var(--spacer) / 12);
margin-bottom: 0;
margin: 0;
padding-bottom: calc(var(--spacer) / 6);
}
.partner {
font-size: var(--font-size-small);
margin-top: calc(var(--spacer) / 8);
.publisher {
display: block;
}
.foot {

View File

@ -23,15 +23,17 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({ ddo }: AssetTeaserProps) => {
return (
<article className={styles.teaser}>
<Link to={`/asset/${ddo.id}`} className={styles.link}>
<Tooltip
placement="left"
content={dataTokenInfo?.name}
className={styles.symbol}
>
{dataTokenInfo?.symbol}
</Tooltip>
<h1 className={styles.title}>{name}</h1>
<Publisher account={owner} minimal />
<header className={styles.header}>
<Tooltip
placement="left"
content={dataTokenInfo?.name}
className={styles.symbol}
>
{dataTokenInfo?.symbol}
</Tooltip>
<h1 className={styles.title}>{name}</h1>
<Publisher account={owner} minimal className={styles.publisher} />
</header>
{isCompute && <div className={styles.accessLabel}>Compute</div>}
<div className={styles.content}>