slice name

This commit is contained in:
Georgi Gardev
2023-11-20 11:42:11 +02:00
parent 98a93294a9
commit 49b4ef2ca4

View File

@@ -117,7 +117,11 @@ export default function Home() {
</div>
</div>
<div class={style.CurrentBackground}>
<strong>{currentBackground()?.description || 'Unnamed'}</strong>
<strong>
{currentBackground()?.description?.slice(60) ||
currentBackground()?.alt_description?.slice(60) ||
'Unnamed'}
</strong>
<br />
{currentBackground()?.location.name}
</div>