Fixed descriptions having borders when not appropriate

This commit is contained in:
Stefan Zermatten
2021-12-08 09:31:02 +02:00
parent 6e22e4286f
commit a58fd8860d
4 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
/>
</template>
<property-description
text
:string="model.description"
/>
<p>

View File

@@ -12,6 +12,7 @@
</template>
<v-card-text v-if="model.summary">
<property-description
text
:model="model.summary"
/>
</v-card-text>

View File

@@ -12,6 +12,7 @@
</v-card-title>
<v-card-text v-if="model.summary">
<property-description
text
:model="model.summary"
/>
</v-card-text>

View File

@@ -1,6 +1,10 @@
<template lang="html">
<markdown-text
v-if="text"
:markdown="model.value || model.text"
/>
<property-field
v-if="model && (model.value || model.text)"
v-else-if="model && (model.value || model.text)"
:name="name"
:cols="{cols: 12}"
>
@@ -28,6 +32,7 @@ export default {
type: String,
default: undefined,
},
text: Boolean,
},
}
</script>