Fixes max-height issue of document type text.
This commit is contained in:
parent
6a17865905
commit
e6d64ac122
|
@ -113,6 +113,11 @@ export default {
|
|||
|
||||
&.document-field-content--text {
|
||||
padding-bottom: 2rem;
|
||||
|
||||
/deep/ article {
|
||||
max-height: calc(32vh - 2rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ img,
|
||||
|
|
|
@ -209,7 +209,8 @@
|
|||
v-if="item.document !== undefined && item.document !== null &&
|
||||
item.document_type !== undefined && item.document_type !== null &&
|
||||
item.document !== '' && item.document_type !== 'empty'"
|
||||
class="document-field-content">
|
||||
class="document-field-content"
|
||||
:class="'document-field-content--' + item.document_type">
|
||||
<div v-html="item.document_as_html"/>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
@ -888,6 +889,15 @@
|
|||
.document-field-content {
|
||||
max-height: 32vh;
|
||||
|
||||
&.document-field-content--text {
|
||||
padding-bottom: 2rem;
|
||||
|
||||
/deep/ article {
|
||||
max-height: calc(32vh - 2rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ img,
|
||||
/deep/ video,
|
||||
/deep/ figure {
|
||||
|
|
Loading…
Reference in New Issue