kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'instance-html' into 'develop'
LandingPage: treat as HTML field, prefer short_description See merge request soapbox-pub/soapbox!1789environments/review-develop-3zknud/deployments/955
commit
22061daf95
|
@ -113,7 +113,10 @@ const LandingPage = () => {
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<Text size='lg'>
|
<Text size='lg'>
|
||||||
{instance.description}
|
<span
|
||||||
|
className='instance-description'
|
||||||
|
dangerouslySetInnerHTML={{ __html: instance.short_description || instance.description }}
|
||||||
|
/>
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -112,3 +112,20 @@ noscript {
|
||||||
div[data-viewport-type="window"] {
|
div[data-viewport-type="window"] {
|
||||||
position: static !important;
|
position: static !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Instance HTML from the API.
|
||||||
|
.instance-description {
|
||||||
|
a {
|
||||||
|
@apply underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
@apply font-bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
i,
|
||||||
|
em {
|
||||||
|
@apply italic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue