|
@@ -139,13 +139,16 @@
|
|
|
{percentage.toFixed(2)}%
|
|
|
</span>
|
|
|
{/if}
|
|
|
+
|
|
|
+ {#if typeof document?.distance === 'number'}
|
|
|
+ <span class="text-gray-500 dark:text-gray-500">
|
|
|
+ ({(document?.distance ?? 0).toFixed(4)})
|
|
|
+ </span>
|
|
|
+ {/if}
|
|
|
+ {:else if typeof document?.distance === 'number'}
|
|
|
<span class="text-gray-500 dark:text-gray-500">
|
|
|
({(document?.distance ?? 0).toFixed(4)})
|
|
|
</span>
|
|
|
- {:else}
|
|
|
- <span class="text-gray-500 dark:text-gray-500">
|
|
|
- {(document?.distance ?? 0).toFixed(4)}
|
|
|
- </span>
|
|
|
{/if}
|
|
|
</div>
|
|
|
</Tooltip>
|