Put tooltip only on the info badge

This commit is contained in:
Henrik Giesel 2021-06-21 17:48:18 +02:00
parent f92bf490ab
commit 909502bb0a

View File

@ -12,8 +12,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let markdownTooltip: string;
</script>
<WithTooltip tooltip={marked(markdownTooltip)} let:createTooltip>
<Label on:mount={(event) => createTooltip(event.detail.span)}
><slot /><Badge>{@html infoCircle}</Badge>
</Label>
</WithTooltip>
<Label
><slot /><WithTooltip tooltip={marked(markdownTooltip)} let:createTooltip
><Badge on:mount={(event) => createTooltip(event.detail.span)}
>{@html infoCircle}</Badge
></WithTooltip
></Label
>