Skip to content

Commit

Permalink
fix include note sizing when in readonly mode, closes #4135
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Aug 8, 2023
1 parent 6ae7661 commit 9166765
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/public/app/services/note_autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ function init() {
};

$.fn.setSelectedExternalLink = function (externalLink) {
console.trace("setSelectedExternalLink");

if (externalLink) {
$(this)
.closest(".input-group")
Expand Down
11 changes: 6 additions & 5 deletions src/public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -722,25 +722,26 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
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;
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 */
}

.include-note.box-size-medium .include-note-content {
.include-note[data-box-size=medium] .include-note-content {
max-height: 20em;
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 */
}

.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 */
}

Expand Down

0 comments on commit 9166765

Please sign in to comment.