Fixes max-height issue of document type text.

This commit is contained in:
mateuswetah 2023-11-10 16:04:23 -03:00
parent 6a17865905
commit e6d64ac122
2 changed files with 16 additions and 1 deletions

View File

@ -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,

View File

@ -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 {