fix(editor): Apply html sanitization in right lifecycle (#13703)

This commit is contained in:
Elias Meire
2025-03-10 12:26:11 +01:00
committed by GitHub
parent 4fdf469190
commit 8ab3073323
2 changed files with 12 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ const addTargetBlank = (html: string) =>
:class="[$style.infoIcon, showTooltip ? $style.visible : $style.hidden]"
>
<N8nTooltip placement="top" :popper-class="$style.tooltipPopper" :show-after="300">
<N8nIcon icon="question-circle" size="small" />
<N8nIcon :class="$style.icon" icon="question-circle" size="small" />
<template #content>
<div v-n8n-html="addTargetBlank(tooltipText)" />
</template>
@@ -143,6 +143,10 @@ const addTargetBlank = (html: string) =>
}
}
.infoIcon:has(.icon[aria-describedby]) {
opacity: 1;
}
.trailing-content {
display: flex;
gap: var(--spacing-3xs);