3
0

Fix field wrap in non record list base fields

This commit is contained in:
Jože Fortun 2024-11-05 16:40:36 +01:00
parent af3fd30f31
commit ccf156a45f
2 changed files with 10 additions and 2 deletions

View File

@ -48,6 +48,11 @@ export default {
type: Object,
default: () => ({}),
},
includeStyles: {
type: Boolean,
default: false,
},
},
computed: {
@ -73,8 +78,10 @@ export default {
if (this.field.isMulti) {
classes.push('multiline')
} else if (!textStyles.wrappedFields || !textStyles.wrappedFields.includes(fieldID)) {
classes.push('text-nowrap')
} else if (this.includeStyles) {
if (!textStyles.wrappedFields || !textStyles.wrappedFields.includes(fieldID)) {
classes.push('text-nowrap')
}
}
return classes

View File

@ -469,6 +469,7 @@
:module="module"
:namespace="namespace"
:extra-options="options"
include-styles
/>
<div class="d-flex flex-nowrap align-items-start inline-actions">
<b-button