mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
refactor(editor): Standardize components sections order (no-changelog) (#10540)
This commit is contained in:
@@ -1,23 +1,3 @@
|
||||
<template>
|
||||
<n8n-text v-if="hint" size="small" color="text-base" tag="div">
|
||||
<div
|
||||
v-if="!renderHTML"
|
||||
:class="{
|
||||
[$style.singleline]: singleLine,
|
||||
[$style.highlight]: highlight,
|
||||
}"
|
||||
>
|
||||
<span data-test-id="parameter-input-hint" v-html="simplyText"></span>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
ref="hintTextRef"
|
||||
:class="{ [$style.singleline]: singleLine, [$style.highlight]: highlight }"
|
||||
v-html="sanitizeHtml(hint)"
|
||||
></div>
|
||||
</n8n-text>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { sanitizeHtml } from '@/utils/htmlUtils';
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
@@ -57,6 +37,26 @@ const simplyText = computed(() => {
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n8n-text v-if="hint" size="small" color="text-base" tag="div">
|
||||
<div
|
||||
v-if="!renderHTML"
|
||||
:class="{
|
||||
[$style.singleline]: singleLine,
|
||||
[$style.highlight]: highlight,
|
||||
}"
|
||||
>
|
||||
<span data-test-id="parameter-input-hint" v-html="simplyText"></span>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
ref="hintTextRef"
|
||||
:class="{ [$style.singleline]: singleLine, [$style.highlight]: highlight }"
|
||||
v-html="sanitizeHtml(hint)"
|
||||
></div>
|
||||
</n8n-text>
|
||||
</template>
|
||||
|
||||
<style lang="scss" module>
|
||||
.singleline {
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in New Issue
Block a user