diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte index 63d8638bfe..959a565542 100644 --- a/packages/builder/src/components/common/bindings/BindingPanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte @@ -177,11 +177,17 @@ >
-
{hoverTarget.title}
-
- {@html hoverTarget.description} -
-
{hoverTarget.example}
+ {#if hoverTarget.title} +
{hoverTarget.title}
+ {/if} + {#if hoverTarget.description} +
+ {@html hoverTarget.description} +
+ {/if} + {#if hoverTarget.example} +
{hoverTarget.example}
+ {/if}
@@ -237,11 +243,11 @@ class="binding" on:mouseenter={e => { popoverAnchor = e.target - if (!binding.name && !binding.description) { + if (!binding.description) { return } hoverTarget = { - title: binding.name, + title: binding.display.name || binding.fieldSchema.name, description: binding.description, } popover.show() @@ -273,13 +279,6 @@ {/if} - - {#if binding.description} -
-
- {binding.description || ""} -
- {/if} {/each}