Skip to content

Build your personal knowledge base with Trilium Notes

fix seeing only part of the PDF preview

zadam5314446980da
diff --git a/src/public/app/widgets/type_widgets/file.js b/src/public/app/widgets/type_widgets/file.js
index e45af6eb83..4c48df6aa9 100644
--- a/src/public/app/widgets/type_widgets/file.js
+++ b/src/public/app/widgets/type_widgets/file.js
@@ -5,7 +5,7 @@ import TypeWidget from "./type_widget.js";
const TPL = `
<div class="note-detail-file note-detail-printable">
<style>
- .type-file {
+ .type-file .note-detail {
height: 100%;
}
@@ -13,7 +13,7 @@ const TPL = `
padding: 10px;
height: 100%;
}
-
+
.file-preview-content {
background-color: var(--accented-background-color);
padding: 15px;
diff --git a/src/public/stylesheets/relation_map.css b/src/public/stylesheets/relation_map.css
index 31f5121977..1882a6d483 100644
--- a/src/public/stylesheets/relation_map.css
+++ b/src/public/stylesheets/relation_map.css
@@ -1,4 +1,4 @@
-.type-relation-map {
+.type-relation-map .note-detail {
height: 100%;
}