- {#if _citations.length > 1 && _citations
- .slice(0, 2)
- .reduce((acc, citation) => acc + citation.source.name.length, 0) <= 50}
+
{#each _citations.slice(0, 2) as citation, idx}
-
-
{/each}
- {:else}
- {#each _citations.slice(0, 1) as citation, idx}
-
-
{
- showCitationModal = true;
- selectedCitation = citation;
- }}
- >
- {#if _citations.every((c) => c.distances !== undefined)}
-
- {idx + 1}
-
- {/if}
-
- {citation.source.name}
-
-
-
- {/each}
- {/if}
+