Fix field wrap in non record list base fields
This commit is contained in:
parent
af3fd30f31
commit
ccf156a45f
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user