Skip to content

Build your personal knowledge base with Trilium Notes

fix include note PDF sizing, closes #2116

zadam19a6d89d4f4a
diff --git a/package.json b/package.json
index 2434e6150d..8c8f74a7f6 100644
--- a/package.json
+++ b/package.json
@@ -80,7 +80,7 @@
},
"devDependencies": {
"cross-env": "7.0.3",
- "electron": "13.1.4",
+ "electron": "13.2.1",
"electron-builder": "22.11.1",
"electron-packager": "15.2.0",
"electron-rebuild": "2.3.5",
diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css
index 09a28c4c15..5800f99e67 100644
--- a/src/public/stylesheets/style.css
+++ b/src/public/stylesheets/style.css
@@ -732,11 +732,11 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
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 */
}
-.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 */
}