fix include note PDF sizing, closes #2116

This commit is contained in:
zadam 2021-08-21 20:19:02 +02:00
parent a6bef45a30
commit 19a6d89d4f
2 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@
}, },
"devDependencies": { "devDependencies": {
"cross-env": "7.0.3", "cross-env": "7.0.3",
"electron": "13.1.4", "electron": "13.2.1",
"electron-builder": "22.11.1", "electron-builder": "22.11.1",
"electron-packager": "15.2.0", "electron-packager": "15.2.0",
"electron-rebuild": "2.3.5", "electron-rebuild": "2.3.5",

View File

@ -732,11 +732,11 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
overflow: auto; overflow: auto;
} }
.include-note.box-size-medium .include-note-content.type-pdf { .include-note.box-size-medium .include-note-content.type-pdf .rendered-note-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 { .include-note.box-size-full .include-note-content.type-pdf .rendered-note-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 */
} }