1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-03 08:29:54 +00:00

Don't render html for field descriptions

This commit is contained in:
Petr Stribny 2024-07-08 14:58:36 +00:00
parent 4df7d2c44a
commit 2afb4b51d3
14 changed files with 88 additions and 105 deletions
web-frontend/modules/database/components/row

View file

@ -9,10 +9,12 @@
{{ field.name }}
<span v-if="field.description" class="margin-left-1">
<HelpIcon
:tooltip="descriptionText"
:tooltip-duration="3"
:tooltip-content-type="'html'"
:tooltip-content-classes="'tooltip__content--expandable'"
:tooltip="field.description || ''"
:tooltip-content-type="'plain'"
:tooltip-content-classes="[
'tooltip__content--expandable',
'tooltip__content--expandable-plain-text',
]"
:icon="'info-empty'"
/>
</span>
@ -121,11 +123,6 @@ export default {
default: () => true,
},
},
computed: {
descriptionText() {
return (this.field.description || '').replaceAll('\n', '<br/>')
},
},
methods: {
getFieldComponent(type) {
return this.$registry