Skip to content

Commit 3ff9a59

Browse files
committed
chore: add formula return type
1 parent 4b60be2 commit 3ff9a59

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

apps/frontend/src/lib/components/formula/formula-editor.svelte

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,19 @@
478478

479479
<div bind:this={hoverSuggestionContainer} class="fixed left-0 top-0 w-80 rounded-md border bg-white shadow-md">
480480
{#if hoverFormula}
481-
<div>
482-
<div class="flex items-center gap-2 border-b bg-gray-100 px-2 py-1 text-sm">
481+
<div class="flex items-center justify-between border-b bg-gray-100 px-2 py-1">
482+
<div class="flex items-center gap-2 text-sm">
483483
<SquareFunctionIcon class="size-4" />
484484
{hoverSuggestion}()
485485
</div>
486+
487+
{#if hoverFormula.returnType}
488+
<span
489+
class="me-2 rounded bg-blue-100 px-2.5 py-0.5 text-xs font-medium uppercase text-blue-800 dark:bg-blue-900 dark:text-blue-300"
490+
>
491+
{hoverFormula.returnType}
492+
</span>
493+
{/if}
486494
</div>
487495

488496
<div class="space-y-2 p-2">

0 commit comments

Comments
 (0)