Skip to content

Build your personal knowledge base with Trilium Notes

fix(file): pdf having a 10px margin at the bottom

Elian Dorancab86175efb6
diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.ts
index aad50628ee..eb795ffdbc 100644
--- a/apps/client/src/widgets/dialogs/popup_editor.ts
+++ b/apps/client/src/widgets/dialogs/popup_editor.ts
@@ -1,5 +1,4 @@
import type { EventNames, EventData } from "../../components/app_context.js";
-import appContext from "../../components/app_context.js";
import NoteContext from "../../components/note_context.js";
import { openDialog } from "../../services/dialog.js";
import BasicWidget from "../basic_widget.js";
@@ -19,7 +18,7 @@ const TPL = /*html*/`\
.modal.popup-editor-dialog .modal-body {
padding: 0;
height: 75vh;
- overflow: scroll;
+ overflow: auto;
}
.modal.popup-editor-dialog .note-detail-editable-text {
diff --git a/apps/client/src/widgets/type_widgets/file.ts b/apps/client/src/widgets/type_widgets/file.ts
index b9e28103cc..ccf581471e 100644
--- a/apps/client/src/widgets/type_widgets/file.ts
+++ b/apps/client/src/widgets/type_widgets/file.ts
@@ -22,7 +22,8 @@ const TPL = /*html*/`
padding: 0;
}
- .note-split.full-content-width .note-detail-file[data-preview-type="video"] {
+ .note-detail.full-height .note-detail-file[data-preview-type="pdf"],
+ .note-detail.full-height .note-detail-file[data-preview-type="video"] {
overflow: hidden;
}