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

View File

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