Merge branch 'instance-html' into 'develop'
LandingPage: treat as HTML field, prefer short_description See merge request soapbox-pub/soapbox!1789
This commit is contained in:
commit
22061daf95
2 changed files with 21 additions and 1 deletions
|
@ -113,7 +113,10 @@ const LandingPage = () => {
|
|||
</h1>
|
||||
|
||||
<Text size='lg'>
|
||||
{instance.description}
|
||||
<span
|
||||
className='instance-description'
|
||||
dangerouslySetInnerHTML={{ __html: instance.short_description || instance.description }}
|
||||
/>
|
||||
</Text>
|
||||
</Stack>
|
||||
</div>
|
||||
|
|
|
@ -112,3 +112,20 @@ noscript {
|
|||
div[data-viewport-type="window"] {
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
// Instance HTML from the API.
|
||||
.instance-description {
|
||||
a {
|
||||
@apply underline;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
@apply font-bold;
|
||||
}
|
||||
|
||||
i,
|
||||
em {
|
||||
@apply italic;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue