display location

This commit is contained in:
Sofía Aritz 2024-06-30 18:33:05 +02:00
parent daa487fe26
commit b0229c0817
Signed by: sofia
GPG key ID: 90B5116E3542B28F

View file

@ -11,6 +11,8 @@
import AssetPreview from './utils/AssetPreview.svelte';
import { createEventDispatcher } from 'svelte';
import Fuse from 'fuse.js';
import { FontAwesomeIcon } from '@fortawesome/svelte-fontawesome';
import { faLocationDot } from '@fortawesome/free-solid-svg-icons';
let dispatch = createEventDispatcher();
@ -162,6 +164,13 @@
</ExternalLink>
{/if}
{#if entry.base.kind === "environment" && typeof entry.base.location === "string"}
<div class="mb-1">
<FontAwesomeIcon class="pr-2" icon={faLocationDot}/>
<span class="text-xl">{entry.base.location}</span>
</div>
{/if}
{#if entry.description != null}
<EntryDescription>{entry.description}</EntryDescription>
{/if}