This commit is contained in:
skidoodle 2024-03-13 00:30:45 +01:00
commit d761a10bf7
102 changed files with 4761 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<script lang="ts">
import InteractivePanel from '../elements/InteractivePanel.svelte';
export let data: WidgetExternalSite;
export let nonInteractive: boolean = false;
export let handle: boolean = false;
export let isPreview: boolean = false;
</script>
<InteractivePanel preview={isPreview} url={!nonInteractive ? data.url : undefined} {handle}>
<div class="flex flex-col gap-1 justify-center">
<p class="text-lg line-clamp-1 break-all">{data.title || data.url}</p>
{#if data.title}<p class="text-secondary line-clamp-1 break-all">{data.url}</p>{/if}
</div>
</InteractivePanel>