display location
This commit is contained in:
parent
daa487fe26
commit
b0229c0817
1 changed files with 9 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue