bring back name in compact view

This commit is contained in:
nklhrstv 2022-02-15 15:57:27 +02:00
parent 7e6256d4f5
commit 98d6ffbf7e
2 changed files with 14 additions and 0 deletions

View file

@ -155,6 +155,14 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
:
null
}
{
compact && typeof name === 'string' && name.length > 0 ?
<div className={styles['name-container']}>
{name}
</div>
:
null
}
{
typeof description === 'string' && description.length > 0 ?
<div className={styles['description-container']}>{description}</div>

View file

@ -155,6 +155,12 @@
}
}
.name-container {
margin-top: 1rem;
font-size: 1.7rem;
color: @color-surface-light5-90;
}
.description-container {
max-height: 6em;
margin-top: 1rem;