mirror of
https://github.com/zadam/trilium.git
synced 2026-03-01 18:13:39 +01:00
client/content renderer/pdf: make the container element full height
This commit is contained in:
parent
9f0f9b8315
commit
b9ce83165f
@ -198,7 +198,7 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
|
||||
|
||||
if (type === "pdf") {
|
||||
const url = `../../api/${entityType}/${entityId}/open`;
|
||||
const $viewer = $("<div>");
|
||||
const $viewer = $(`<div style="height: 100%">`);
|
||||
render(h(PdfViewer, {pdfUrl: url, editable: false}), $viewer.get(0)!);
|
||||
|
||||
$content.append($viewer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user