mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix include note sizing when in readonly mode, closes #4135
This commit is contained in:
parent
6ae7661603
commit
9166765ced
@ -259,8 +259,6 @@ function init() {
|
||||
};
|
||||
|
||||
$.fn.setSelectedExternalLink = function (externalLink) {
|
||||
console.trace("setSelectedExternalLink");
|
||||
|
||||
if (externalLink) {
|
||||
$(this)
|
||||
.closest(".input-group")
|
||||
|
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user