fix include note sizing when in readonly mode, closes #4135

This commit is contained in:
zadam 2023-08-08 22:56:45 +02:00
parent 6ae7661603
commit 9166765ced
2 changed files with 6 additions and 7 deletions

View File

@ -259,8 +259,6 @@ function init() {
}; };
$.fn.setSelectedExternalLink = function (externalLink) { $.fn.setSelectedExternalLink = function (externalLink) {
console.trace("setSelectedExternalLink");
if (externalLink) { if (externalLink) {
$(this) $(this)
.closest(".input-group") .closest(".input-group")

View File

@ -722,25 +722,26 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
content: '' !important; content: '' !important;
} }
.include-note.box-size-small .include-note-content { /* Using data- attribute to support both CKEditor and readonly view */
.include-note[data-box-size=small] .include-note-content {
max-height: 10em; max-height: 10em;
overflow: auto; overflow: auto;
} }
.include-note.box-size-small .include-note-content.type-pdf { .include-note[data-box-size=small] .include-note-content.type-pdf {
height: 10em; /* PDF is rendered in iframe and must be sized absolutely */ height: 10em; /* PDF is rendered in iframe and must be sized absolutely */
} }
.include-note.box-size-medium .include-note-content { .include-note[data-box-size=medium] .include-note-content {
max-height: 20em; max-height: 20em;
overflow: auto; overflow: auto;
} }
.include-note.box-size-medium .include-note-content.type-pdf .rendered-content { .include-note[data-box-size=medium] .include-note-content.type-pdf .rendered-content {
height: 20em; /* PDF is rendered in iframe and must be sized absolutely */ height: 20em; /* PDF is rendered in iframe and must be sized absolutely */
} }
.include-note.box-size-full .include-note-content.type-pdf .rendered-content { .include-note[data-box-size=full] .include-note-content.type-pdf .rendered-content {
height: 50em; /* PDF is rendered in iframe and it's not possible to put full height so at least a large height */ height: 50em; /* PDF is rendered in iframe and it's not possible to put full height so at least a large height */
} }